From 5b3441ae554997427cf905d84bb840e41c6ad143 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Tue, 6 Aug 2013 12:39:27 +0000 Subject: 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 --- res/res_pjsip_messaging.c | 1 - 1 file changed, 1 deletion(-) (limited to 'res/res_pjsip_messaging.c') diff --git a/res/res_pjsip_messaging.c b/res/res_pjsip_messaging.c index 8f5151292..a3972ce67 100644 --- a/res/res_pjsip_messaging.c +++ b/res/res_pjsip_messaging.c @@ -484,7 +484,6 @@ static int msg_send(void *data) update_from(tdata, mdata->from); vars_to_headers(mdata->msg, tdata); if (ast_sip_send_request(tdata, NULL, endpoint)) { - pjsip_tx_data_dec_ref(tdata); ast_log(LOG_ERROR, "SIP MESSAGE - Could not send request\n"); return -1; } -- cgit v1.2.3