From ed6eb8050d85d70920c2536a153fa4eddc5e9fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 12 Dec 2019 14:54:26 +0100 Subject: [PATCH 124/181] fpi-ssm: Bug on wrong state passed to jump_to_state_delayed While remove the checks that are already part of the common function fpi_ssm_set_delayed_action_timeout(). --- libfprint/fpi-ssm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libfprint/fpi-ssm.c b/libfprint/fpi-ssm.c index 0f3e6fb..d672064 100644 --- a/libfprint/fpi-ssm.c +++ b/libfprint/fpi-ssm.c @@ -573,8 +573,7 @@ fpi_ssm_jump_to_state_delayed (FpiSsm *machine, g_autofree char *source_name = NULL; g_return_if_fail (machine != NULL); - BUG_ON (machine->completed); - BUG_ON (machine->timeout != NULL); + BUG_ON (state < 0 || state >= machine->nr_states); data = g_new0 (FpiSsmJumpToStateDelayedData, 1); data->machine = machine; -- 2.24.1