aboutsummaryrefslogtreecommitdiffstats
path: root/bin/ykfde.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ykfde.c')
-rw-r--r--bin/ykfde.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ykfde.c b/bin/ykfde.c
index 1277e2c..bfdfa6b 100644
--- a/bin/ykfde.c
+++ b/bin/ykfde.c
@@ -158,8 +158,9 @@ int main(int argc, char **argv) {
}
/* read the serial number from key */
- if ((rc = yk_get_serial(yk, 0, 0, &serial)) < 0) {
+ if (yk_get_serial(yk, 0, 0, &serial) == 0) {
perror("yk_get_serial() failed");
+ rc = EXIT_FAILURE;
goto out40;
}