Module: kamailio
Branch: master
Commit: 48dc90dfa1839a405e7d090b23c1fdc907107731
URL:
https://github.com/kamailio/kamailio/commit/48dc90dfa1839a405e7d090b23c1fdc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-11T18:40:51+01:00
core: parser - print start of buffer on error for identity info
---
Modified: src/core/parser/parse_identityinfo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/48dc90dfa1839a405e7d090b23c1fdc…
Patch:
https://github.com/kamailio/kamailio/commit/48dc90dfa1839a405e7d090b23c1fdc…
---
diff --git a/src/core/parser/parse_identityinfo.c b/src/core/parser/parse_identityinfo.c
index e58bcd26ff..6aaabf2377 100644
--- a/src/core/parser/parse_identityinfo.c
+++ b/src/core/parser/parse_identityinfo.c
@@ -313,7 +313,7 @@ void parse_identityinfo(char *buffer, char *end, struct
identityinfo_body *ii_b)
parseerror:
if(p<end) {
LM_ERR("unexpected char [%c] in status %d: <<%.*s>> .\n",
- *p, status, (int)(p-buffer), ZSW(p));
+ *p, status, (int)(p-buffer), buffer);
} else {
LM_ERR("unexpected end of buffer - status %d\n", status);
}