[sr-dev] git:master:69714b26: nathelper: fix zero-length log placeholder

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 24 11:19:21 CET 2020


Module: kamailio
Branch: master
Commit: 69714b26c63c75df6759f9158c7181d4f86b4764
URL: https://github.com/kamailio/kamailio/commit/69714b26c63c75df6759f9158c7181d4f86b4764

Author: Zero King <l2dy at icloud.com>
Committer: Daniel-Constantin Mierla <miconda at 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/69714b26c63c75df6759f9158c7181d4f86b4764.diff
Patch: https://github.com/kamailio/kamailio/commit/69714b26c63c75df6759f9158c7181d4f86b4764.patch

---

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) {




More information about the sr-dev mailing list