Kaynağa Gözat

tcpops: target variable passed on tcp_get_conid function was empty

kvrban 5 yıl önce
ebeveyn
işleme
a2932492e2
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/modules/tcpops/tcpops_mod.c

+ 1 - 1
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:
 setvalue:
 	memset(&val, 0, sizeof(pv_value_t));
 	memset(&val, 0, sizeof(pv_value_t));
 	val.ri = conid;
 	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) {
 	if(pvs->setf(msg, &pvs->pvp, (int)EQ_T, &val)<0) {
 		LM_ERR("failed to set the output var\n");
 		LM_ERR("failed to set the output var\n");
 		return -1;
 		return -1;