From: Olle Johansson Date: Thu, 30 Nov 2006 09:23:25 +0000 (+0000) Subject: Merging patch from 1.2/1.4. I think this was originally spotted by X-Git-Tag: 1.6.0-beta1~3^2~3829 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=389ed67b418be05cec5a4aea9a9a32c04051fa5d;p=thirdparty%2Fasterisk.git Merging patch from 1.2/1.4. I think this was originally spotted by Luigi, but hit me in the back today. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48130 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 388ed76763..4c8ce286be 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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; }