Changeset 3700

Show
Ignore:
Timestamp:
05/30/2012 09:44:12 PM (12 months ago)
Author:
kurtis.heimerl
Message:

attempting to fix #937 in public, basically forgot to check if sip_method exists.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • openbts/trunk/SIP/SIPEngine.cpp

    r3677 r3700  
    737737                        responded = true; 
    738738                        saveResponse(ack); 
    739                         if (!strncmp(ack->sip_method,"ACK", 4)) { 
    740                                 LOG(WARNING) << "unexpected " << ack->sip_method << " response to UNAVAIL, from proxy " << mProxyIP << ":" << mProxyPort << ". Assuming other end has cleared"; 
     739                        if ((NULL == ack->sip_method) || !strncmp(ack->sip_method,"ACK", 4)) { 
     740                                LOG(WARNING) << "unexpected response to UNAVAIL, from proxy " << mProxyIP << ":" << mProxyPort << ". Assuming other end has cleared"; 
    741741                        } 
    742742                        osip_message_free(ack);