[asterisk-commits] simon.perreault: branch group/v6 r86291 - /team/group/v6/trunk/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 18 07:59:59 CDT 2007


Author: simon.perreault
Date: Thu Oct 18 07:59:58 2007
New Revision: 86291

URL: http://svn.digium.com/view/asterisk?view=rev&rev=86291
Log:
Don't destroy a null pointer.

Modified:
    team/group/v6/trunk/channels/chan_sip.c

Modified: team/group/v6/trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/group/v6/trunk/channels/chan_sip.c?view=diff&rev=86291&r1=86290&r2=86291
==============================================================================
--- team/group/v6/trunk/channels/chan_sip.c (original)
+++ team/group/v6/trunk/channels/chan_sip.c Thu Oct 18 07:59:58 2007
@@ -8435,7 +8435,6 @@
 		if (!(p = sip_alloc_fromhost( r->callid, r->hostname, NULL, 0, SIP_REGISTER))) {
 			/* we have what we hope is a temporary network error,
 			 * probably DNS.  We need to reschedule a registration try */
-			sip_destroy(p);
 			if (r->timeout > -1) {
 				r->timeout = ast_sched_replace(r->timeout, sched, 
 					global_reg_timeout * 1000, sip_reg_timeout, r);




More information about the asterisk-commits mailing list