aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-18 15:08:41 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-18 15:08:41 +0000
commit97b11a21be2e97d637989ddb8a07550c41ed8481 (patch)
tree2c2332d32f0181da2a56d758e6fef873f9b45ca7
parentec3b37c26832bb94c6243752de89b41c468e7ff7 (diff)
Do not return with a successful authentication if the From header ends up empty.
(AST-2008-003) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@109391 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 45a1dfa95..27f925551 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7308,8 +7308,6 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, int sipme
ast_copy_string(p->cid_num, of, sizeof(p->cid_num));
ast_shrink_phone_number(p->cid_num);
}
- if (ast_strlen_zero(of))
- return 0;
if (!mailbox) /* If it's a mailbox SUBSCRIBE, don't check users */
user = find_user(of, 1);