summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-05-05 21:43:06 +0000
committerRussell Bryant <russell@russellbryant.com>2006-05-05 21:43:06 +0000
commite91afbaef120261c80921ff06cea9c78135c57a8 (patch)
tree607e26526526e4acda61222ce9b400acc25a4267 /channels
parent5f856ea9979172241a74b76e9f8c43854e7bc1ee (diff)
fix the return value of gettag() to only return the pointer to the provided
tag buffer if the tag was actually found. There is code that checks to see if this result is non-zero to determine whether the tag was found or not. (issue #7092, mikma) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2d7c6cd0d..c13d9a9ce 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -10795,8 +10795,9 @@ static const char *gettag(const struct sip_request *req, char *header, char *tag
sep = strchr(tagbuf, ';');
if (sep)
*sep = '\0';
+ return tagbuf;
}
- return tagbuf;
+ return NULL;
}
/*! \brief Handle incoming notifications */