diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 1fb50f50e5..f537e5072e 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -107,6 +107,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi top: if (switch_channel_get_state(session->channel) >= CS_HANGUP) { + *frame = NULL; return SWITCH_STATUS_FALSE; }