[asterisk-dev] svn blame (was: Yes. (Was: does get_header() in chan_sip returns a null-terminated buffer?))
Philipp Kempgen
philipp.kempgen at amooma.de
Thu Oct 23 12:59:14 CDT 2008
Klaus Darilion schrieb:
> 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;
> PS: Is there an easy way to find the corresponding commit (to read the
> commit comment)?
svn blame
http://svnbook.red-bean.com/en/1.4/svn.ref.svn.c.blame.html
svn blame channels/chan_sip.c | grep 'application/sdp'
Philipp Kempgen
--
http://www.das-asterisk-buch.de - http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
--
More information about the asterisk-dev
mailing list