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
1.2
Jason Parker 18 years ago
parent dd7fd5e641
commit 866bf7984a

@ -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);

Loading…
Cancel
Save