[asterisk-commits] oej: branch 1.4 r46606 - in /branches/1.4: ./ channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Oct 31 02:17:53 MST 2006


Author: oej
Date: Tue Oct 31 03:17:53 2006
New Revision: 46606

URL: http://svn.digium.com/view/asterisk?rev=46606&view=rev
Log:
If peer fails ACL check, fail peer at REGISTER

Modified:
    branches/1.4/   (props changed)
    branches/1.4/channels/chan_sip.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?rev=46606&r1=46605&r2=46606&view=diff
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Tue Oct 31 03:17:53 2006
@@ -8105,8 +8105,10 @@
 	build_contact(p);
 	peer = find_peer(name, NULL, 1);
 	if (!(peer && ast_apply_ha(peer->ha, sin))) {
+		/* Peer fails ACL check */
 		if (peer)
 			ASTOBJ_UNREF(peer, sip_destroy_peer);
+		peer = NULL;
 	}
 	if (peer) {
 		/* Set Frame packetization */



More information about the asterisk-commits mailing list