Do not return with a successful authentication if the From header ends up empty.
authorJason Parker <jparker@digium.com>
Tue, 18 Mar 2008 15:07:04 +0000 (15:07 +0000)
committerJason Parker <jparker@digium.com>
Tue, 18 Mar 2008 15:07:04 +0000 (15:07 +0000)
(AST-2008-003)

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

channels/chan_sip.c

index a110252..f6dcfa5 100644 (file)
@@ -11511,8 +11511,6 @@ static enum check_auth_result check_user_full(struct sip_pvt *p, struct sip_requ
                        ast_shrink_phone_number(tmp);
                ast_string_field_set(p, cid_num, tmp);
        }
-       if (ast_strlen_zero(of))
-               return AUTH_SUCCESSFUL;
 
        if (global_match_auth_username) {
                /*