Skip to content

Commit

Permalink
nathelper: fix zero-length log placeholder
Browse files Browse the repository at this point in the history
(cherry picked from commit 69714b2)
  • Loading branch information
l2dy authored and miconda committed Mar 27, 2020
1 parent 261af67 commit c3273ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/nathelper/nhelpr_funcs.c
Expand Up @@ -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) {
Expand Down

0 comments on commit c3273ba

Please sign in to comment.