From: Olle Johansson Date: Sun, 4 Jun 2006 18:58:27 +0000 (+0000) Subject: Fix potential bug. THanks luigi! X-Git-Tag: 1.4.0-beta1~1067 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e97507e8fb74a19c99602687ef5c14e1c945df45;p=thirdparty%2Fasterisk.git Fix potential bug. THanks luigi! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32089 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5444a08673..d4f4653875 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7329,12 +7329,8 @@ static int get_refer_info(struct sip_pvt *transferer, struct sip_request *outgoi ast_uri_decode(referdata->replaces_callid); if ((ptr = strchr(referdata->replaces_callid, ';'))) /* Remove options */ { *ptr = '\0'; + ptr++; } - /* - * XXX don't know what was the intention but this code is - * definitely wrong, as ptr can be NULL here. - */ - ptr++; /* Find the different tags before we destroy the string */ to = strcasestr(ptr, "to-tag=");