From: Joshua Colp Date: Mon, 4 Jun 2007 19:31:09 +0000 (+0000) Subject: Better handle SIP devices that say they have SDP content... but really don't. (issue... X-Git-Tag: 1.4.5~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=01456184f96140ee1ed329ebd916d9440669a4b1;p=thirdparty%2Fasterisk.git Better handle SIP devices that say they have SDP content... but really don't. (issue #9398 reported by mthomasslo) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67068 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 459d17d30e..66840680e7 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4703,7 +4703,7 @@ static int find_sdp(struct sip_request *req) if (!strcasecmp(content_type, "application/sdp")) { req->sdp_start = 0; req->sdp_end = req->lines; - return 1; + return req->lines ? 1 : 0; } /* if it's not multipart/mixed, there cannot be an SDP */