Skip to content

Commit

Permalink
[core] log error if add_alias() fails
Browse files Browse the repository at this point in the history
Reported by coverity CID 211363
  • Loading branch information
bogdan-iancu committed Jul 15, 2020
1 parent 86158c8 commit f564faa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion socket_info.c
Expand Up @@ -797,7 +797,8 @@ int fix_socket_list(struct socket_info **list)
(l->name.len!=si->name.len)||
(strncmp(l->name.s, si->name.s, si->name.len)!=0))
)
add_alias(l->name.s, l->name.len, l->port_no, l->proto);
if (add_alias(l->name.s,l->name.len,l->port_no,l->proto)<0)
LM_ERR(" add_alias failed\n");

/* remove l*/
sock_listrm(list, l);
Expand Down

0 comments on commit f564faa

Please sign in to comment.