diff options
author | Joshua Colp <jcolp@digium.com> | 2013-08-06 12:39:27 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2013-08-06 12:39:27 +0000 |
commit | 5b3441ae554997427cf905d84bb840e41c6ad143 (patch) | |
tree | 8353fa77bd52f56aa3a33f3647d4848daa667f80 /res/res_pjsip_outbound_registration.c | |
parent | 07d3705b42a157423ba11fca5e5b57ea1bf303c6 (diff) |
Fix crash in res_pjsip_outbound_registration when the remote server can not be resolved.
This crash was caused by decrementing the reference count of a newly created message when
it should not be. This change fixes that but also fixes all other cases where this was
incorrectly done.
(closes issue ASTERISK-22188)
Reported by: Kinsey Moore
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396319 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_outbound_registration.c')
-rw-r--r-- | res/res_pjsip_outbound_registration.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/res/res_pjsip_outbound_registration.c b/res/res_pjsip_outbound_registration.c index d9c4f2bb5..67e0ead33 100644 --- a/res/res_pjsip_outbound_registration.c +++ b/res/res_pjsip_outbound_registration.c @@ -221,7 +221,6 @@ static int handle_client_registration(void *data) ao2_ref(client_state, +1); if (pjsip_regc_send(client_state->client, tdata) != PJ_SUCCESS) { ao2_ref(client_state, -1); - pjsip_tx_data_dec_ref(tdata); } return 0; |