Skip to content

Commit

Permalink
tsilo: check return code for parse_uri()
Browse files Browse the repository at this point in the history
(cherry picked from commit a19a06f)
  • Loading branch information
miconda authored and grumvalski committed Jul 24, 2017
1 parent becbde4 commit 1765576
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/tsilo/ts_append.c
Expand Up @@ -51,9 +51,12 @@ int ts_append(struct sip_msg* msg, str *ruri, char *table) {

if (use_domain) {
t_uri = ruri;
}
else {
parse_uri(ruri->s, ruri->len, &p_uri);
} else {
if(parse_uri(ruri->s, ruri->len, &p_uri)<0) {
LM_ERR("failed to parse uri %.*s\n", ruri->len, ruri->s);
unlock_entry_by_ruri(ruri);
return -1;
}
t_uri = &p_uri.user;
}

Expand Down

0 comments on commit 1765576

Please sign in to comment.