Module: kamailio
Branch: master
Commit: 294a00985b2cf4a397ffc81782f9ce6e4bc1ca15
URL:
https://github.com/kamailio/kamailio/commit/294a00985b2cf4a397ffc81782f9ce6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-08-30T10:54:53+02:00
tmx: use t_unset() instead of t_unref() for pv_get_tm_reply_reason()
---
Modified: src/modules/tmx/t_var.c
---
Diff:
https://github.com/kamailio/kamailio/commit/294a00985b2cf4a397ffc81782f9ce6…
Patch:
https://github.com/kamailio/kamailio/commit/294a00985b2cf4a397ffc81782f9ce6…
---
diff --git a/src/modules/tmx/t_var.c b/src/modules/tmx/t_var.c
index 2fac9605a8..64a81e591b 100644
--- a/src/modules/tmx/t_var.c
+++ b/src/modules/tmx/t_var.c
@@ -587,7 +587,7 @@ int pv_get_tm_reply_reason(struct sip_msg *msg, pv_param_t *param,
/* t_find() above has the side effect of setting T and
REFerencing T => we must unref and unset it for the
main/core onreply_route. */
- _tmx_tmb.t_unref(msg);
+ _tmx_tmb.t_unset();
}
/* no break */
case TM_ONREPLY_ROUTE: