diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 24d8f59e0..dc8f50dfb 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -3596,10 +3596,8 @@ const char *call_stop_forwarding_ng(ng_command_ctx_t *ctx) { ilog(LOG_INFO, "Stop forwarding (entire call)"); CALL_CLEAR(call, REC_FORWARDING); if (flags.all == ALL_ALL) { - for (__auto_type l = call->monologues.head; l; l = l->next) { - monologue = l->data; - ML_CLEAR(monologue, REC_FORWARDING); - } + for (__auto_type l = call->monologues.head; l; l = l->next) + ML_CLEAR(l->data, REC_FORWARDING); } }