Module: kamailio
Branch: 5.5
Commit: dc5eda219c152d1c08ba38849163849f62242b2d
URL:
https://github.com/kamailio/kamailio/commit/dc5eda219c152d1c08ba38849163849…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-16T08:29:16+01:00
core: parser - print start of buffer on error for identity info
(cherry picked from commit 48dc90dfa1839a405e7d090b23c1fdc907107731)
---
Modified: src/core/parser/parse_identityinfo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/dc5eda219c152d1c08ba38849163849…
Patch:
https://github.com/kamailio/kamailio/commit/dc5eda219c152d1c08ba38849163849…
---
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);
}