diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-05 21:43:06 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-05 21:43:06 +0000 |
commit | 82b213b846cc0b195ac8acd45b60010a674acba8 (patch) | |
tree | 607e26526526e4acda61222ce9b400acc25a4267 /channels | |
parent | f2fd8957f8df247595d24f1567716e039163bae3 (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: http://svn.digium.com/svn/asterisk/trunk@25060 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 3 |
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 */ |