Skip to content

Commit

Permalink
$DLG_timeout pseudo-var: Fix crash on write operations
Browse files Browse the repository at this point in the history
Unless dialog replication is enabled, issue would occur.

Credits to Dragomir Haralambiev for reporting and helping troubleshoot this
  • Loading branch information
liviuchircu committed Jan 28, 2016
1 parent 2efdbf8 commit 4c60af8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/dialog/dialog.c
Expand Up @@ -1739,7 +1739,8 @@ int pv_set_dlg_timeout(struct sip_msg *msg, pv_param_t *param,
if (db_update)
update_dialog_timeout_info(dlg);

replicate_dialog_updated(dlg);
if (dialog_replicate_cluster)
replicate_dialog_updated(dlg);

if (timer_update && update_dlg_timer(&dlg->tl, timeout) < 0) {
LM_ERR("failed to update timer\n");
Expand Down

0 comments on commit 4c60af8

Please sign in to comment.