diff --git a/libfprint/fpi-ssm.c b/libfprint/fpi-ssm.c index 2d679b2..64430c1 100644 --- a/libfprint/fpi-ssm.c +++ b/libfprint/fpi-ssm.c @@ -241,6 +241,8 @@ void fpi_ssm_mark_failed(fpi_ssm *machine, int error) */ void fpi_ssm_next_state(fpi_ssm *machine) { + g_return_if_fail (machine != NULL); + BUG_ON(machine->completed); machine->cur_state++; if (machine->cur_state == machine->nr_states) {