mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user