aboutsummaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
Diffstat (limited to 'udev')
-rw-r--r--udev/ykfde.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev/ykfde.c b/udev/ykfde.c
index 43b25e4..3d303e6 100644
--- a/udev/ykfde.c
+++ b/udev/ykfde.c
@@ -243,8 +243,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 out30;
}