]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure the presence of dbsecret is factored into user scoring.
authorJoshua Colp <jcolp@digium.com>
Fri, 8 Feb 2008 15:08:20 +0000 (15:08 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 8 Feb 2008 15:08:20 +0000 (15:08 +0000)
(closes issue #11952)
Reported by: bbhoss

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102968 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index efe3d6c002d721c40eaed79efe0dbaaceedb018e..00bdcea6477009b3fc61fa63ac3a5b559d328a83 100644 (file)
@@ -4980,7 +4980,7 @@ static int check_access(int callno, struct sockaddr_in *sin, struct iax_ies *ies
                                        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! */