From: Joshua Colp Date: Fri, 13 Apr 2007 16:32:03 +0000 (+0000) Subject: Don't assume the callid of a dialog will be set, as in some circumstances it may... X-Git-Tag: 1.4.7.1~437 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c06e063e1a2c5168562f6e94c5d2541e2c95ce20;p=thirdparty%2Fasterisk.git Don't assume the callid of a dialog will be set, as in some circumstances it may not. (issue #9534 reported by tecnoxarxa) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@61641 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index fcdee0c6f1..d94f4886d8 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4354,6 +4354,8 @@ static struct sip_pvt *find_call(struct sip_request *req, struct sockaddr_in *si for (p = iflist; p; p = p->next) { /* In pedantic, we do not want packets with bad syntax to be connected to a PVT */ int found = FALSE; + if (ast_strlen_zero(p->callid)) + continue; if (req->method == SIP_REGISTER) found = (!strcmp(p->callid, callid)); else