Module: kamailio
Branch: master
Commit: 69714b26c63c75df6759f9158c7181d4f86b4764
URL:
https://github.com/kamailio/kamailio/commit/69714b26c63c75df6759f9158c7181d…
Author: Zero King <l2dy(a)icloud.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-24T11:11:54+01:00
nathelper: fix zero-length log placeholder
---
Modified: src/modules/nathelper/nhelpr_funcs.c
---
Diff:
https://github.com/kamailio/kamailio/commit/69714b26c63c75df6759f9158c7181d…
Patch:
https://github.com/kamailio/kamailio/commit/69714b26c63c75df6759f9158c7181d…
---
diff --git a/src/modules/nathelper/nhelpr_funcs.c b/src/modules/nathelper/nhelpr_funcs.c
index 7300868532..c0db297c1e 100644
--- a/src/modules/nathelper/nhelpr_funcs.c
+++ b/src/modules/nathelper/nhelpr_funcs.c
@@ -227,7 +227,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) {