From c57d62be4101dfc41d1031ff4e583c8efa50155e Mon Sep 17 00:00:00 2001 From: Vlad Patrascu Date: Wed, 18 Nov 2020 22:44:54 +0200 Subject: [PATCH] tm: fix crash when having an anycast listener and no replication --- modules/tm/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/tm/cluster.c b/modules/tm/cluster.c index 57aa306f3b9..e3c848dc08a 100644 --- a/modules/tm/cluster.c +++ b/modules/tm/cluster.c @@ -498,7 +498,7 @@ int tm_anycast_replicate(struct sip_msg *msg) */ int tm_anycast_cancel(struct sip_msg *msg) { - if (!tm_repl_auto_cancel) + if (!tm_repl_auto_cancel || !tm_repl_cluster) return -1; if (!tm_existing_trans(msg))