Merging patch from 1.2/1.4. I think this was originally spotted by
authorOlle Johansson <oej@edvina.net>
Thu, 30 Nov 2006 09:23:25 +0000 (09:23 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 30 Nov 2006 09:23:25 +0000 (09:23 +0000)
Luigi, but hit me in the back today.

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

channels/chan_sip.c

index 388ed76..4c8ce28 100644 (file)
@@ -14575,7 +14575,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->flags[0], SIP_NEEDDESTROY);    /* Make sure we destroy this dialog */
                return -1;
        }