From: Olle Johansson Date: Fri, 9 Jun 2006 21:32:48 +0000 (+0000) Subject: Issue #7325 - Parse string after URI decoding (casper) X-Git-Tag: 1.4.0-beta1~950 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ef5092031c33f7200e5e03a23add53a771ea70e;p=thirdparty%2Fasterisk.git Issue #7325 - Parse string after URI decoding (casper) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33376 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 9d73f372cf..4d5438a86e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7325,11 +7325,12 @@ static int get_destination(struct sip_pvt *p, struct sip_request *oreq) /* Find the request URI */ if (req->rlPart2) ast_copy_string(tmp, req->rlPart2, sizeof(tmp)); - uri = get_in_brackets(tmp); if (pedanticsipchecking) ast_uri_decode(tmp); + uri = get_in_brackets(tmp); + if (strncmp(uri, "sip:", 4)) { ast_log(LOG_WARNING, "Huh? Not a SIP header (%s)?\n", uri); return -1;