From 492df453de434f49131dd61fcf5fd6f4f5e8025a Mon Sep 17 00:00:00 2001 From: Bogdan-Andrei Iancu Date: Tue, 21 Nov 2023 11:10:27 +0200 Subject: [PATCH] [tm] fix NULL on out of index for bavp() vars --- modules/tm/tm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tm/tm.c b/modules/tm/tm.c index b1baabed999..87f7c1377e8 100644 --- a/modules/tm/tm.c +++ b/modules/tm/tm.c @@ -1995,7 +1995,8 @@ int pv_get_tm_branch_avp(struct sip_msg *msg, pv_param_t *param, val->ri = avp_value.n; val->flags |= PV_VAL_INT|PV_TYPE_INT; } - } + } else + pv_get_null(msg, param, val); goto success;