Skip to content

Commit

Permalink
core: parser contact - link structure once finishing current one
Browse files Browse the repository at this point in the history
(cherry picked from commit d6c52a6)
(cherry picked from commit 9ed8820)
  • Loading branch information
miconda committed Sep 17, 2021
1 parent 307f429 commit f0d7b3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/parser/contact/contact.c
Expand Up @@ -262,13 +262,14 @@ int parse_contacts(str* _s, contact_t** _c)
_s->len--;
trim_leading(_s);

c->next = *_c;
*_c = c;
c = NULL;

if (_s->len == 0) {
LM_ERR("text after comma missing\n");
goto error;
}

c->next = *_c;
*_c = c;
}

error:
Expand Down

0 comments on commit f0d7b3a

Please sign in to comment.