diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-03 22:18:41 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-03 22:18:41 +0000 |
commit | 74bd63c705c8999aca8f38f10da2099fa4d45af7 (patch) | |
tree | b7d94e0e12c98139fd530b878386563458d2df80 | |
parent | a2ba8183c146937b184076fda75256673cde2f76 (diff) |
mark XXX a bug in the code. oej/kevin, any idea what you want
to use here ?
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31841 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 4 |
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 */ |