aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-18 16:43:42 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-18 16:43:42 +0000
commit5c60726100738ed97164f2bfbd9538e8f81ccf6c (patch)
tree61cb392b181bfd0c63c46843b918b676fa6a4a2c
parent9a8ebc778d3421b44a80ff2659a235cac29ac52c (diff)
Do not return with a successful authentication if the From header ends up empty.
(AST-2008-003) git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.4.18.1@109540 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 13351e7fb..71bfabb86 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -9319,8 +9319,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);