]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Do not return with a successful authentication if the From header ends up empty.
authorJason Parker <jparker@digium.com>
Tue, 18 Mar 2008 15:08:41 +0000 (15:08 +0000)
committerJason Parker <jparker@digium.com>
Tue, 18 Mar 2008 15:08:41 +0000 (15:08 +0000)
(AST-2008-003)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@109391 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 45a1dfa958dad5d31da7d2e7741948a55c6b92d3..27f925551f2cd55c027ae5fdc4cb5edcc93ef1b4 100644 (file)
@@ -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);