diff --git a/src/mod/applications/mod_limit/mod_limit.c b/src/mod/applications/mod_limit/mod_limit.c index 635ed28366..e2b8f8bfac 100644 --- a/src/mod/applications/mod_limit/mod_limit.c +++ b/src/mod/applications/mod_limit/mod_limit.c @@ -322,7 +322,7 @@ static switch_status_t db_state_handler(switch_core_session_t *session) switch_safe_free(sql); switch_core_event_hook_remove_state_change(session, db_state_handler); /* Remove limit_realm variable so we register another hook if limit is called again */ - switch_channel_set_variable(channel, "limit_realm", ""); + switch_channel_set_variable(channel, "limit_realm", NULL); } return SWITCH_STATUS_SUCCESS; }