Module: kamailio
Branch: 5.5
Commit: a2aa9f66a3cb898d6cdfbf3aba6d3a8b8b804429
URL:
https://github.com/kamailio/kamailio/commit/a2aa9f66a3cb898d6cdfbf3aba6d3a8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-10-05T16:36:31+02:00
core: jump to error in case of unexpected comma for parse addr spec
(cherry picked from commit 932e46b09176544cf6e085a32677980b26e4d2eb)
---
Modified: src/core/parser/parse_addr_spec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a2aa9f66a3cb898d6cdfbf3aba6d3a8…
Patch:
https://github.com/kamailio/kamailio/commit/a2aa9f66a3cb898d6cdfbf3aba6d3a8…
---
diff --git a/src/core/parser/parse_addr_spec.c b/src/core/parser/parse_addr_spec.c
index 1ff5a16908..f003e5f31a 100644
--- a/src/core/parser/parse_addr_spec.c
+++ b/src/core/parser/parse_addr_spec.c
@@ -494,6 +494,7 @@ static char *parse_to_param(char *const buffer, const char *const
end,
}
LM_ERR("invalid character ',' in status %d: [%.*s]\n",
status, (int)(tmp - buffer), ZSW(buffer));
+ goto error;
}
default:
switch(status) {