commit | 16bf8a31cb05a596b6181a95b9cc42f344ec24e8 | [log] [tgz] |
---|---|---|
author | Olivier Dion <olivier.dion@savoirfairelinux.com> | Tue Aug 02 10:03:56 2022 -0300 |
committer | Sébastien Blin <sebastien.blin@savoirfairelinux.com> | Thu Sep 07 09:01:44 2023 -0400 |
tree | ac722e05d661465c5fb15899ed1b0ad36fff1d3c | |
parent | 6eb7a17503ac013145f44248fc090d6dde5ca9de [diff] |
pjnath/turn_sock: Fix destruction of TURN sockets When destroying a TURN socket on failure -- e.g. failed allocation of socket -- the underlying session does not change its last status. Change this by passing a `pj_status_t' value to `pj_turn_sock_shutdown2' and calling `pj_turn_session_shutdown2' instead of `pj_turn_session_shutdown'. The old `pj_turn_sock_shutdown' remains for ABI compatibility and call the new version `pj_turn_sock_shutdown2' with status `PJ_SUCCESS'. https://git.jami.net/savoirfairelinux/jami-daemon/-/issues/682 Upstream ticket: https://github.com/pjsip/pjproject/issues/3154 Change-Id: I7f902b0a5bb44fd403bd147676d655dc775f2156