[asterisk-commits] file: branch 1.2 r76080 - /branches/1.2/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 20 12:16:49 CDT 2007


Author: file
Date: Fri Jul 20 12:16:48 2007
New Revision: 76080

URL: http://svn.digium.com/view/asterisk?view=rev&rev=76080
Log:
(closes issue #10247)
Reported by: fkasumovic
Patches:
      chan_sip.patch uploaded by fkasumovic (license #101)
Drop any peer realm authentication entries when reloading so multiple entries do not get added to the peer.

Modified:
    branches/1.2/channels/chan_sip.c

Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?view=diff&rev=76080&r1=76079&r2=76080
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Fri Jul 20 12:16:48 2007
@@ -12519,6 +12519,9 @@
 		ast_variables_destroy(peer->chanvars);
 		peer->chanvars = NULL;
 	}
+	/* If we have realm authentication information, remove them (reload) */
+	clear_realm_authentication(peer->auth);
+	peer->auth = (struct sip_auth *) NULL;
 	strcpy(peer->context, default_context);
 	strcpy(peer->subscribecontext, default_subscribecontext);
 	strcpy(peer->vmexten, global_vmexten);




More information about the asterisk-commits mailing list