[asterisk-commits] russell: tag 1.4.18.1 r109540 - /tags/1.4.18.1/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 18 11:43:42 CDT 2008


Author: russell
Date: Tue Mar 18 11:43:42 2008
New Revision: 109540

URL: http://svn.digium.com/view/asterisk?view=rev&rev=109540
Log:
Do not return with a successful authentication if the From header ends up empty.
(AST-2008-003)

Modified:
    tags/1.4.18.1/channels/chan_sip.c

Modified: tags/1.4.18.1/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/tags/1.4.18.1/channels/chan_sip.c?view=diff&rev=109540&r1=109539&r2=109540
==============================================================================
--- tags/1.4.18.1/channels/chan_sip.c (original)
+++ tags/1.4.18.1/channels/chan_sip.c Tue Mar 18 11:43:42 2008
@@ -9319,8 +9319,6 @@
 			ast_shrink_phone_number(tmp);
 		ast_string_field_set(p, cid_num, tmp);
 	}
-	if (ast_strlen_zero(of))
-		return AUTH_SUCCESSFUL;
 
 	if (!authpeer)	/* If we are looking for a peer, don't check the user objects (or realtime) */
 		user = find_user(of, 1);




More information about the asterisk-commits mailing list