[asterisk-commits] jpeeler: trunk r177624 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 19 18:35:53 CST 2009


Author: jpeeler
Date: Thu Feb 19 18:35:53 2009
New Revision: 177624

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=177624
Log:
Set sip_request ast_str data to NULL so ast_str_copy allocates space properly
in copy_request

(issue #14478)
Reported by: erik_dedecker


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=177624&r1=177623&r2=177624
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Feb 19 18:35:53 2009
@@ -19497,6 +19497,7 @@
 					/* Chan2: Call between asterisk and transferee */
 
 	int res = 0;
+	current.req.data = NULL;
 
 	if (req->debug)
 		ast_verbose("Call %s got a SIP call transfer from %s: (REFER)!\n", p->callid, ast_test_flag(&p->flags[0], SIP_OUTGOING) ? "callee" : "caller");




More information about the asterisk-commits mailing list