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

Author: Zero King <l...@icloud.com>
Committer: Daniel-Constantin Mierla <mico...@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) {


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to