mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 102968 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r102968 | file | 2008-02-08 11:08:20 -0400 (Fri, 08 Feb 2008) | 4 lines Make sure the presence of dbsecret is factored into user scoring. (closes issue #11952) Reported by: bbhoss ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@102969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5546,7 +5546,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! */
|
||||
|
Reference in New Issue
Block a user