Module: kamailio
Branch: master
Commit: f69b22d44cb5abc803c2b58790dd33f2310c1c59
URL:
https://github.com/kamailio/kamailio/commit/f69b22d44cb5abc803c2b58790dd33f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-05-04T20:18:51+02:00
core: parse/contact: jump to error on too many contacts
---
Modified: src/core/parser/contact/contact.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f69b22d44cb5abc803c2b58790dd33f…
Patch:
https://github.com/kamailio/kamailio/commit/f69b22d44cb5abc803c2b58790dd33f…
---
diff --git a/src/core/parser/contact/contact.c b/src/core/parser/contact/contact.c
index c67fe681d51..007949e88c4 100644
--- a/src/core/parser/contact/contact.c
+++ b/src/core/parser/contact/contact.c
@@ -340,7 +340,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");