From 294a00985b2cf4a397ffc81782f9ce6e4bc1ca15 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 30 Aug 2022 10:54:53 +0200 Subject: [PATCH] tmx: use t_unset() instead of t_unref() for pv_get_tm_reply_reason() --- src/modules/tmx/t_var.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/tmx/t_var.c b/src/modules/tmx/t_var.c index 2fac9605a81..64a81e591b0 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: