From: Jason Parker Date: Tue, 18 Mar 2008 15:08:41 +0000 (+0000) Subject: Do not return with a successful authentication if the From header ends up empty. X-Git-Tag: 1.2.27~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=866bf7984a333ffe3cdbe3f631afb38014a80e58;p=thirdparty%2Fasterisk.git 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.2@109391 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 45a1dfa958..27f925551f 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);