From 4e4552d65f247335672946541db690a8612d7e2e Mon Sep 17 00:00:00 2001 From: Kurtis Heimerl Date: Thu, 31 May 2012 02:44:12 +0000 Subject: [PATCH] attempting to fix #937 in public, basically forgot to check if sip_method exists. git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3700 19bc5d8c-e614-43d4-8b26-e1612bc8e597 --- SIP/SIPEngine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SIP/SIPEngine.cpp b/SIP/SIPEngine.cpp index fae102d..42751aa 100644 --- a/SIP/SIPEngine.cpp +++ b/SIP/SIPEngine.cpp @@ -736,8 +736,8 @@ SIPState SIPEngine::MODWaitForUNAVAILACK() osip_message_t * ack = gSIPInterface.read(mCallID, gConfig.getNum("SIP.Timer.E")); responded = true; saveResponse(ack); - if (!strncmp(ack->sip_method,"ACK", 4)) { - LOG(WARNING) << "unexpected " << ack->sip_method << " response to UNAVAIL, from proxy " << mProxyIP << ":" << mProxyPort << ". Assuming other end has cleared"; + if ((NULL == ack->sip_method) || !strncmp(ack->sip_method,"ACK", 4)) { + LOG(WARNING) << "unexpected response to UNAVAIL, from proxy " << mProxyIP << ":" << mProxyPort << ". Assuming other end has cleared"; } osip_message_free(ack); break;