[asterisk-commits] file: branch 1.4 r102968 - /branches/1.4/channels/chan_iax2.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 8 09:08:20 CST 2008


Author: file
Date: Fri Feb  8 09:08:20 2008
New Revision: 102968

URL: http://svn.digium.com/view/asterisk?view=rev&rev=102968
Log:
Make sure the presence of dbsecret is factored into user scoring.
(closes issue #11952)
Reported by: bbhoss

Modified:
    branches/1.4/channels/chan_iax2.c

Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=102968&r1=102967&r2=102968
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Fri Feb  8 09:08:20 2008
@@ -4980,7 +4980,7 @@
 					user_unref(best);
 				best = user;
 				break;
-			} else if (ast_strlen_zero(user->secret) && ast_strlen_zero(user->inkeys)) {
+			} else if (ast_strlen_zero(user->secret) && ast_strlen_zero(user->dbsecret) && ast_strlen_zero(user->inkeys)) {
 				/* No required authentication */
 				if (user->ha) {
 					/* There was host authentication and we passed, bonus! */




More information about the asterisk-commits mailing list