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
  • Loading branch information
rvlad-patrascu committed Nov 18, 2020
1 parent 229ec07 commit c57d62b
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 c57d62b

Please sign in to comment.