diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-30 15:48:56 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-30 15:48:56 +0000 |
commit | b02e6d990016b137a4420083e4511e7fc3eb11ec (patch) | |
tree | 32cd903224ca7bf7e012d85be4395c6b3e0c348b | |
parent | 58b176437536d3f9c9d6a81f0553185ec76b75b5 (diff) |
Merged revisions 23705 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r23705 | kpfleming | 2006-04-30 10:46:22 -0500 (Sun, 30 Apr 2006) | 2 lines
remove a pointless comparison, since the buffer is smaller than the length being checked for
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23706 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_iax2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index a3977a3b4..f0fab7ab9 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -5062,10 +5062,10 @@ static int check_access(int callno, struct sockaddr_in *sin, struct iax_ies *ies } ast_mutex_unlock(&userl.lock); user = best; - if (!user && !ast_strlen_zero(iaxs[callno]->username) && (strlen(iaxs[callno]->username) < 128)) { + if (!user && !ast_strlen_zero(iaxs[callno]->username)) { user = realtime_user(iaxs[callno]->username); if (user && !ast_strlen_zero(iaxs[callno]->context) && /* No context specified */ - !apply_context(user->contexts, iaxs[callno]->context)) { /* Context is permitted */ + !apply_context(user->contexts, iaxs[callno]->context)) { /* Context is permitted */ destroy_user(user); user = NULL; } |