Module: kamailio
Branch: 5.7
Commit: 64421e2d4ed48e4a77cd997e389ae4a5225b40ab
URL:
https://github.com/kamailio/kamailio/commit/64421e2d4ed48e4a77cd997e389ae4a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-05-07T17:31:27+02:00
core: parse/contact: jump to error on too many contacts
(cherry picked from commit f69b22d44cb5abc803c2b58790dd33f2310c1c59)
(cherry picked from commit 11f0cfec4d2fc6043d282cdb2258520559f0fcd1)
---
Modified: src/core/parser/contact/contact.c
---
Diff:
https://github.com/kamailio/kamailio/commit/64421e2d4ed48e4a77cd997e389ae4a…
Patch:
https://github.com/kamailio/kamailio/commit/64421e2d4ed48e4a77cd997e389ae4a…
---
diff --git a/src/core/parser/contact/contact.c b/src/core/parser/contact/contact.c
index caf2e38d904..4b02ab608cb 100644
--- a/src/core/parser/contact/contact.c
+++ b/src/core/parser/contact/contact.c
@@ -329,7 +329,7 @@ int parse_contacts(str *_s, contact_t **_c)
if(n > KSR_MAX_CONTACTS) {
LM_ERR("too many contacts: %d\n", n);
- return -1;
+ goto error;
}
if(_s->len == 0) {
LM_ERR("text after comma missing\n");