aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-04 18:58:27 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-04 18:58:27 +0000
commitb12b657dffc855e7157e15b8337c7290a905b7fc (patch)
tree61c3bcf805ea11a8b424e3a0e31a97d57cc60d2a /channels
parentd2376afbdfe4bdcbed07fb9399860b3dc7ce6f4a (diff)
Fix potential bug. THanks luigi!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32089 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 5444a0867..d4f465387 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=");