diff options
author | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-01-12 21:19:48 +0000 |
---|---|---|
committer | twilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-01-12 21:19:48 +0000 |
commit | cffd814b8df4bdc489d8482a8d2bee07c9d6065b (patch) | |
tree | 798febceef57c992dd6537882a8e247b43586c77 /channels/chan_sip.c | |
parent | 99aaee9778155e6665626efa1a07b448d74190ca (diff) |
Merged revisions 301682 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
........
r301682 | twilson | 2011-01-12 15:05:02 -0600 (Wed, 12 Jan 2011) | 9 lines
Don't reject all SUBSCRIBE auth requests
When merging another SUBSCRIBE fix from 1.4, some braces were put in
the wrong place. This patch fixes that.
(closes issue #18597)
Reported by: thsgmbh
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@301683 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b84e62300..6b047493e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -23200,10 +23200,10 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req, ast_log(LOG_NOTICE, "Failed to authenticate device %s for SUBSCRIBE\n", get_header(req, "From")); transmit_response_reliable(p, "403 Forbidden", req); } - } - pvt_set_needdestroy(p, "authentication failed"); - return 0; + pvt_set_needdestroy(p, "authentication failed"); + return 0; + } } /* At this point, authpeer cannot be NULL. Remember we hold a reference, |