]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Due to recent changes tag will no longer be NULL if not present so we have to use...
authorJoshua Colp <jcolp@digium.com>
Mon, 25 Feb 2008 15:17:18 +0000 (15:17 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 25 Feb 2008 15:17:18 +0000 (15:17 +0000)
(closes issue #12061)
Reported by: flefoll
Patches:
      chan_sip.c.br14.patch_pedantic_no_totag uploaded by flefoll (license 244)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@104082 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 77ebf5a3bed9e8c5b16e37d57dcb5527975d6287..de46b9b447477bb2bb80ff21abdde83605114cf4 100644 (file)
@@ -4567,7 +4567,7 @@ static struct sip_pvt *find_call(struct sip_request *req, struct sockaddr_in *si
                        found = (!strcmp(p->callid, callid));
                else 
                        found = (!strcmp(p->callid, callid) && 
-                       (!pedanticsipchecking || !tag || ast_strlen_zero(p->theirtag) || !strcmp(p->theirtag, tag))) ;
+                       (!pedanticsipchecking || ast_strlen_zero(tag) || ast_strlen_zero(p->theirtag) || !strcmp(p->theirtag, tag))) ;
 
                if (option_debug > 4)
                        ast_log(LOG_DEBUG, "= %s Their Call ID: %s Their Tag %s Our tag: %s\n", found ? "Found" : "No match", p->callid, p->theirtag, p->tag);