diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 75b7068aef..1e7f22161d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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; }