]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Do proper test and don't leave dialogs hanging...
authorOlle Johansson <oej@edvina.net>
Thu, 30 Nov 2006 09:05:07 +0000 (09:05 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 30 Nov 2006 09:05:07 +0000 (09:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48127 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 75b7068aef209f672f657815f2e9cea2f64fe32f..1e7f22161d0b6723f017762aafb22f8238006298 100644 (file)
@@ -11207,7 +11207,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                error = 1;
        }
        if (error) {
-               if (!p->initreq.header) /* New call */
+               if (!p->initreq.headers)        /* New call */
                        ast_set_flag(p, SIP_NEEDDESTROY);       /* Make sure we destroy this dialog */
                return -1;
        }