[asterisk-dev] Yes. (Was: does get_header() in chan_sip returns a null-terminated buffer?)
Klaus Darilion
klaus.mailinglists at pernau.at
Thu Oct 23 12:36:27 CDT 2008
Russell Bryant schrieb:
> Klaus Darilion wrote:
>> thanks
>
> You're welcome!
I just wondered why this patch was added from 1.4.21.2 to 1.4.22 in
chan_sip.c
@@ -4919,7 +4937,7 @@
content_type = get_header(req, "Content-Type");
/* if the body contains only SDP, this is easy */
- if (!strcasecmp(content_type, "application/sdp")) {
+ if (!strncasecmp(content_type, "application/sdp", 15)) {
req->sdp_start = 0;
req->sdp_end = req->lines;
return req->lines ? 1 : 0;
thanks
Klaus
PS: Is there an easy way to find the corresponding commit (to read the
commit comment)?
More information about the asterisk-dev
mailing list