aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-08 15:08:20 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-08 15:08:20 +0000
commit96ece3df54b9d4c548486bf6d4aaaeadb5f82038 (patch)
tree19eec3fffa29c04266f8e8ccb4df9030bc770d69 /channels
parent3c3596989d9c676074d2b45c85821924c9548c0e (diff)
Make sure the presence of dbsecret is factored into user scoring.
(closes issue #11952) Reported by: bbhoss git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@102968 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index efe3d6c00..00bdcea64 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -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! */