diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-18 15:08:41 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-18 15:08:41 +0000 |
commit | 97b11a21be2e97d637989ddb8a07550c41ed8481 (patch) | |
tree | 2c2332d32f0181da2a56d758e6fef873f9b45ca7 /channels | |
parent | ec3b37c26832bb94c6243752de89b41c468e7ff7 (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
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
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); |