Blame SOURCES/0063-fpi-ssm-Bug-on-handler-set-to-a-NULL-function.patch

73b847
From dac6c01df94333686d810a049dedfb32ee8b132b Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Thu, 28 Nov 2019 20:15:21 +0100
73b847
Subject: [PATCH 063/181] fpi-ssm: Bug on handler set to a NULL function
73b847
73b847
We would crash otherwise, while this is quite obvious there was no code
73b847
enforcing this.
73b847
---
73b847
 libfprint/fpi-ssm.c | 1 +
73b847
 1 file changed, 1 insertion(+)
73b847
73b847
diff --git a/libfprint/fpi-ssm.c b/libfprint/fpi-ssm.c
73b847
index 0f54b1d..4498ce9 100644
73b847
--- a/libfprint/fpi-ssm.c
73b847
+++ b/libfprint/fpi-ssm.c
73b847
@@ -114,6 +114,7 @@ fpi_ssm_new (FpDevice             *dev,
73b847
   FpiSsm *machine;
73b847
 
73b847
   BUG_ON (nr_states < 1);
73b847
+  BUG_ON (handler == NULL);
73b847
 
73b847
   machine = g_new0 (FpiSsm, 1);
73b847
   machine->handler = handler;
73b847
-- 
73b847
2.24.1
73b847