summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-06-03 22:18:41 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-06-03 22:18:41 +0000
commitc7a5a96fc6f08ecffa692407f14218c7bb5d74b3 (patch)
treeb7d94e0e12c98139fd530b878386563458d2df80
parent9f9e9a08db69c30ff1e5ef890c5bf366136c8cdf (diff)
mark XXX a bug in the code. oej/kevin, any idea what you want
to use here ? git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@31841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 81f3ccb65..0b657f68a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7331,6 +7331,10 @@ static int get_refer_info(struct sip_pvt *transferer, struct sip_request *outgoi
if ((ptr = strchr(referdata->replaces_callid, ';'))) /* Remove options */ {
*ptr = '\0';
}
+ /*
+ * 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 */