[asterisk-commits] irroot: branch irroot/distrotech-customers-1.8 r319021 - /team/irroot/distrot...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun May 15 12:05:21 CDT 2011


Author: irroot
Date: Sun May 15 12:05:16 2011
New Revision: 319021

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=319021
Log:

Replace previous hack with better solution


Modified:
    team/irroot/distrotech-customers-1.8/channels/chan_sip.c

Modified: team/irroot/distrotech-customers-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-1.8/channels/chan_sip.c?view=diff&rev=319021&r1=319020&r2=319021
==============================================================================
--- team/irroot/distrotech-customers-1.8/channels/chan_sip.c (original)
+++ team/irroot/distrotech-customers-1.8/channels/chan_sip.c Sun May 15 12:05:16 2011
@@ -23859,7 +23859,9 @@
 
 	/* At this point, if we have an authpeer (which we have to have to get here) we should unref
 	 * it since if we have actually used it, we have reffed it when p->relatedpeer was set. */
-//	authpeer = unref_peer(authpeer, "unref pointer into (*authpeer)");
+	if (authpeer) {
+		authpeer = unref_peer(authpeer, "unref pointer into (*authpeer)");
+	}
 
 	/* Add subscription for extension state from the PBX core */
 	if (p->subscribed != MWI_NOTIFICATION  && p->subscribed != CALL_COMPLETION && !resubscribe) {




More information about the asterisk-commits mailing list