Module: kamailio
Branch: master
Commit: 932e46b09176544cf6e085a32677980b26e4d2eb
URL:
https://github.com/kamailio/kamailio/commit/932e46b09176544cf6e085a32677980…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-09-24T14:43:40+02:00
core: jump to error in case of unexpected comma for parse addr spec
---
Modified: src/core/parser/parse_addr_spec.c
---
Diff:
https://github.com/kamailio/kamailio/commit/932e46b09176544cf6e085a32677980…
Patch:
https://github.com/kamailio/kamailio/commit/932e46b09176544cf6e085a32677980…
---
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) {