[sr-dev] git:master:a2511df2: core: log unexpected char in parse_param2()

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 8 10:01:06 CEST 2021

Module: kamailio
Branch: master
Commit: a2511df29adc83544f047cbbdba7a8ba88272930
URL: https://github.com/kamailio/kamailio/commit/a2511df29adc83544f047cbbdba7a8ba88272930

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-09-08T10:00:56+02:00

core: log unexpected char in parse_param2()


Modified: src/core/parser/parse_param.c


Diff:  https://github.com/kamailio/kamailio/commit/a2511df29adc83544f047cbbdba7a8ba88272930.diff
Patch: https://github.com/kamailio/kamailio/commit/a2511df29adc83544f047cbbdba7a8ba88272930.patch


diff --git a/src/core/parser/parse_param.c b/src/core/parser/parse_param.c
index 5452cbe50b..8436e0db23 100644
--- a/src/core/parser/parse_param.c
+++ b/src/core/parser/parse_param.c
@@ -514,7 +514,7 @@ static inline int parse_param2(
 		goto ok; /* To be able to parse URI parameters */
 	if(_s->s[0] != separator) {
-		LM_ERR("Invalid character, %c expected\n", separator);
+		LM_ERR("Invalid character '%c' - expected '%c'\n", _s->s[0], separator);
 		goto error;

More information about the sr-dev mailing list