[asterisk-commits] mmichelson: branch group/pimp_my_sip r384476 - /team/group/pimp_my_sip/res/re...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 1 12:07:55 CDT 2013


Author: mmichelson
Date: Mon Apr  1 12:07:52 2013
New Revision: 384476

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=384476
Log:
Be sure to properly free authentication response if we don't actually send it.


Modified:
    team/group/pimp_my_sip/res/res_sip/sip_distributor.c

Modified: team/group/pimp_my_sip/res/res_sip/sip_distributor.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip/sip_distributor.c?view=diff&rev=384476&r1=384475&r2=384476
==============================================================================
--- team/group/pimp_my_sip/res/res_sip/sip_distributor.c (original)
+++ team/group/pimp_my_sip/res/res_sip/sip_distributor.c Mon Apr  1 12:07:52 2013
@@ -145,11 +145,14 @@
 			pjsip_endpt_send_response2(ast_sip_get_pjsip_endpoint(), rdata, tdata, NULL, NULL);
 			return PJ_TRUE;
 		case AST_SIP_AUTHENTICATION_SUCCESS:
+			pjsip_tx_data_dec_ref(tdata);
 			return PJ_FALSE;
 		case AST_SIP_AUTHENTICATION_FAILED:
+			pjsip_tx_data_dec_ref(tdata);
 			pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(), rdata, 403, NULL, NULL, NULL);
 			return PJ_TRUE;
 		case AST_SIP_AUTHENTICATION_ERROR:
+			pjsip_tx_data_dec_ref(tdata);
 			pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(), rdata, 500, NULL, NULL, NULL);
 			return PJ_TRUE;
 		}




More information about the asterisk-commits mailing list