Skip to content

Commit

Permalink
$socket(af) variable: Fix returned value type
Browse files Browse the repository at this point in the history
Credits to Alex Kinch for the report!
  • Loading branch information
liviuchircu committed Feb 2, 2021
1 parent 5267295 commit f3c3ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pvar.c
Expand Up @@ -2218,7 +2218,7 @@ static inline int get_socket_field( struct socket_info *si,
res->rs.len = 5;
} else
return pv_get_null( NULL, NULL, res);
res->flags = PV_VAL_STR|PV_VAL_INT;
res->flags = PV_VAL_STR;
break;
default:
LM_CRIT("BUG - unsupported ID %d\n",pvn->u.isname.name.n);
Expand Down

0 comments on commit f3c3ed5

Please sign in to comment.