From f3c3ed53e6c74b17151e9266d848e323c3eb54bc Mon Sep 17 00:00:00 2001 From: Liviu Chircu Date: Tue, 2 Feb 2021 22:03:43 +0200 Subject: [PATCH] $socket(af) variable: Fix returned value type Credits to Alex Kinch for the report! --- pvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvar.c b/pvar.c index 5e1f4fa89c6..0168ca256a8 100644 --- a/pvar.c +++ b/pvar.c @@ -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);