Skip to content

Commit

Permalink
core: parser - print ascii code and position of invalid char for iden…
Browse files Browse the repository at this point in the history
…tity info

(cherry picked from commit 40e59d9)
(cherry picked from commit ef9b353)
  • Loading branch information
miconda committed Mar 2, 2022
1 parent e2c5c60 commit 016febc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/parser/parse_identityinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,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);
}
Expand Down

0 comments on commit 016febc

Please sign in to comment.