Skip to content

Commit

Permalink
tm: fix crash when having an anycast listener and no replication
Browse files Browse the repository at this point in the history
(cherry picked from commit c57d62b)
  • Loading branch information
rvlad-patrascu committed Nov 19, 2020
1 parent 08f172b commit 9584bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tm/cluster.c
Expand Up @@ -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))
Expand Down

0 comments on commit 9584bd8

Please sign in to comment.