Module: kamailio
Branch: master
Commit: 740afac15b3d8d618b5101a761a37f5808d4b4f0
URL:
https://github.com/kamailio/kamailio/commit/740afac15b3d8d618b5101a761a37f5…
Author: Zero King <l2dy(a)icloud.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-24T11:12:39+01:00
rtpengine: fix zero-length log placeholder
---
Modified: src/modules/rtpengine/rtpengine_funcs.c
---
Diff:
https://github.com/kamailio/kamailio/commit/740afac15b3d8d618b5101a761a37f5…
Patch:
https://github.com/kamailio/kamailio/commit/740afac15b3d8d618b5101a761a37f5…
---
diff --git a/src/modules/rtpengine/rtpengine_funcs.c
b/src/modules/rtpengine/rtpengine_funcs.c
index b99153a063..598af6360e 100644
--- a/src/modules/rtpengine/rtpengine_funcs.c
+++ b/src/modules/rtpengine/rtpengine_funcs.c
@@ -231,7 +231,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 ) {