(cherry picked from commit f69b22d44cb5abc803c2b58790dd33f2310c1c59)
@@ -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");