Module: kamailio
Branch: master
Commit: 40e59d9c3b8ec531cb9e26093c43647a43108dfd
URL:
https://github.com/kamailio/kamailio/commit/40e59d9c3b8ec531cb9e26093c43647…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-01-12T14:12:42+01:00
core: parser - print ascii code and position of invalid char for identity info
---
Modified: src/core/parser/parse_identityinfo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/40e59d9c3b8ec531cb9e26093c43647…
Patch:
https://github.com/kamailio/kamailio/commit/40e59d9c3b8ec531cb9e26093c43647…
---
diff --git a/src/core/parser/parse_identityinfo.c b/src/core/parser/parse_identityinfo.c
index 7afd473f23..dc0aba5d9b 100644
--- a/src/core/parser/parse_identityinfo.c
+++ b/src/core/parser/parse_identityinfo.c
@@ -311,8 +311,8 @@ 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), buffer);
+ LM_ERR("unexpected char [%c/%d] in status %d - pos %d: [%.*s]\n", *p, *p,
+ status, (int)(p - buffer), (int)(p - buffer), buffer);
} else {
LM_ERR("unexpected end of buffer - status %d\n", status);
}