From a2932492e24ac3c3afe4d33f025c7501c93fda49 Mon Sep 17 00:00:00 2001 From: kvrban Date: Thu, 2 Jul 2020 10:09:09 +0200 Subject: [PATCH] tcpops: target variable passed on tcp_get_conid function was empty --- src/modules/tcpops/tcpops_mod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/tcpops/tcpops_mod.c b/src/modules/tcpops/tcpops_mod.c index ee2404a9ac3..82d9889355c 100644 --- a/src/modules/tcpops/tcpops_mod.c +++ b/src/modules/tcpops/tcpops_mod.c @@ -592,7 +592,7 @@ static int ki_tcp_get_conid_helper(sip_msg_t* msg, str *saddr, pv_spec_t *pvs) setvalue: memset(&val, 0, sizeof(pv_value_t)); val.ri = conid; - val.flags = PV_VAL_INT; + val.flags = PV_VAL_INT|PV_TYPE_INT; if(pvs->setf(msg, &pvs->pvp, (int)EQ_T, &val)<0) { LM_ERR("failed to set the output var\n"); return -1;