[asterisk-commits] qwell: branch 1.2 r109391 - /branches/1.2/channels/chan_sip.c

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


Author: qwell
Date: Tue Mar 18 10:08:41 2008
New Revision: 109391

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

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=109391&r1=109390&r2=109391
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Tue Mar 18 10:08:41 2008
@@ -7308,8 +7308,6 @@
 		ast_copy_string(p->cid_num, of, sizeof(p->cid_num));
 		ast_shrink_phone_number(p->cid_num);
 	}
-	if (ast_strlen_zero(of))
-		return 0;
 
 	if (!mailbox)	/* If it's a mailbox SUBSCRIBE, don't check users */
 		user = find_user(of, 1);




More information about the asterisk-commits mailing list