Skip to content

Commit

Permalink
dispatcher: Fix IP printing on error case
Browse files Browse the repository at this point in the history
Many thanks to @Cossack9989 for the report!

Fixes #2780
  • Loading branch information
liviuchircu committed Mar 16, 2022
1 parent 41587ad commit e2f13d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dispatcher/dispatch.c
Expand Up @@ -2310,7 +2310,7 @@ int ds_is_in_list(struct sip_msg *_m, str *_ip, int port, int set,
char *pattern = NULL;

if (!(ip = str2ip(_ip)) && !(ip = str2ip6(_ip))) {
LM_ERR("IP val is not IP <%.*s>\n",val.rs.len,val.rs.s);
LM_ERR("IP val is not IP <%.*s>\n", _ip->len, _ip->s);
return -1;
}

Expand Down

0 comments on commit e2f13d3

Please sign in to comment.