Clean up bad dialogs properly. Caused by GS 487 adapter without CSEQ on separate line

in the REGISTER request. Imported from 1.2.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson
2006-11-30 09:12:30 +00:00
parent 81c438713b
commit 073e937757

View File

@@ -14323,7 +14323,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;
}