[asterisk-commits] qwell: trunk r109389 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 18 10:07:04 CDT 2008


Author: qwell
Date: Tue Mar 18 10:07:04 2008
New Revision: 109389

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

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=109389&r1=109388&r2=109389
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Mar 18 10:07:04 2008
@@ -11511,8 +11511,6 @@
 			ast_shrink_phone_number(tmp);
 		ast_string_field_set(p, cid_num, tmp);
 	}
-	if (ast_strlen_zero(of))
-		return AUTH_SUCCESSFUL;
 
 	if (global_match_auth_username) {
 		/*




More information about the asterisk-commits mailing list