Module: kamailio Branch: master Commit: 030f18b5cffeb117dcf582cf12c5b3c35ace1469 URL: https://github.com/kamailio/kamailio/commit/030f18b5cffeb117dcf582cf12c5b3c3...
Author: Zero King l2dy@icloud.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-03-24T11:12:25+01:00
rtpproxy: fix zero-length log placeholder
---
Modified: src/modules/rtpproxy/rtpproxy_funcs.c
---
Diff: https://github.com/kamailio/kamailio/commit/030f18b5cffeb117dcf582cf12c5b3c3... Patch: https://github.com/kamailio/kamailio/commit/030f18b5cffeb117dcf582cf12c5b3c3...
---
diff --git a/src/modules/rtpproxy/rtpproxy_funcs.c b/src/modules/rtpproxy/rtpproxy_funcs.c index 858c5196d5..35401cdb24 100644 --- a/src/modules/rtpproxy/rtpproxy_funcs.c +++ b/src/modules/rtpproxy/rtpproxy_funcs.c @@ -228,7 +228,7 @@ int extract_body(struct sip_msg *msg, str *body ) /* p2 is text limit for application parsing */ rest = eat_line(p1 + mpdel.len + 2, p2 - p1 - mpdel.len - 2); if ( rest > p2 ) { - LM_ERR("Unparsable <%.*s>\n", (int)(p1-p1), p1); + LM_ERR("Unparsable <%.*s>\n", (int)(p2-p1), p1); return -1; } while( rest<p2 ) {