[asterisk-commits] tilghman: trunk r78140 - in /trunk: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Aug 4 22:42:36 CDT 2007


Author: tilghman
Date: Sat Aug  4 22:42:35 2007
New Revision: 78140

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78140
Log:
Merged revisions 78139 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r78139 | tilghman | 2007-08-04 22:29:01 -0500 (Sat, 04 Aug 2007) | 2 lines

If peer is not found, the error message is misleading (should be peer not found, not ACL failure)

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

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

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=78140&r1=78139&r2=78140
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sat Aug  4 22:42:35 2007
@@ -9130,10 +9130,12 @@
 	peer = find_peer(name, NULL, 1);
 	if (!(peer && ast_apply_ha(peer->ha, sin))) {
 		/* Peer fails ACL check */
-		if (peer)
+		if (peer) {
 			unref_peer(peer);
-		peer = NULL;
-		res = AUTH_ACL_FAILED;
+			peer = NULL;
+			res = AUTH_ACL_FAILED;
+		} else
+			res = AUTH_NOT_FOUND;
 	}
 	if (peer) {
 		/* Set Frame packetization */




More information about the asterisk-commits mailing list