diff --git a/libfprint/sync.c b/libfprint/sync.c index d636edd..440b725 100644 --- a/libfprint/sync.c +++ b/libfprint/sync.c @@ -263,6 +263,9 @@ API_EXPORTED int fp_enroll_finger_img(struct fp_dev *dev, break; } + if (!final) + return r; + out: if (final) { fp_dbg("ending enrollment");