[sr-dev] git:master:fbb4312f: Merge pull request #2386 from kvrban/master

GitHub noreply at github.com
Fri Jul 3 09:40:25 CEST 2020


Module: kamailio
Branch: master
Commit: fbb4312f1b2ebf6793408241d56bfc2dca6543ec
URL: https://github.com/kamailio/kamailio/commit/fbb4312f1b2ebf6793408241d56bfc2dca6543ec

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2020-07-03T09:40:12+02:00

Merge pull request #2386 from kvrban/master

tcpops: target variable passed on tcp_get_conid function was empty

---

Modified: src/modules/tcpops/tcpops_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/fbb4312f1b2ebf6793408241d56bfc2dca6543ec.diff
Patch: https://github.com/kamailio/kamailio/commit/fbb4312f1b2ebf6793408241d56bfc2dca6543ec.patch

---

diff --git a/src/modules/tcpops/tcpops_mod.c b/src/modules/tcpops/tcpops_mod.c
index ee2404a9ac..82d9889355 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;




More information about the sr-dev mailing list