(closes issue #11952)
Reported by: bbhoss
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102968
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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! */