diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index a1e4e42b2..5b7b97fc9 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -3497,10 +3497,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); } }