]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 109391 via svnmerge from
authorJason Parker <jparker@digium.com>
Tue, 18 Mar 2008 15:10:16 +0000 (15:10 +0000)
committerJason Parker <jparker@digium.com>
Tue, 18 Mar 2008 15:10:16 +0000 (15:10 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r109391 | qwell | 2008-03-18 10:08:41 -0500 (Tue, 18 Mar 2008) | 3 lines

Do not return with a successful authentication if the From header ends up empty.
(AST-2008-003)

........

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

channels/chan_sip.c

index a9f29721e9ea2819d1d1dbad81f7e3f59fc1028a..0f1edc1db90490b8f130351413a2e744c445841d 100644 (file)
@@ -9396,8 +9396,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 (!authpeer)  /* If we are looking for a peer, don't check the user objects (or realtime) */
                user = find_user(of, 1);