aboutsummaryrefslogtreecommitdiffstats
path: root/bin/ykfde.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-05-04 13:55:52 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-05-04 13:55:52 +0200
commitb133e70d60a7791c350ba0cf9fb4604bdbd18c9a (patch)
treeb0a473d19d0f41ea47425866257afe569fe4e3c1 /bin/ykfde.c
parentf1d3e2f2170c9bd7fbfe215e586ecd1fd580904a (diff)
downloadmkinitcpio-ykfde-b133e70d60a7791c350ba0cf9fb4604bdbd18c9a.tar.gz
mkinitcpio-ykfde-b133e70d60a7791c350ba0cf9fb4604bdbd18c9a.tar.zst
fix error condition for yk_close_key() and yk_release()
Diffstat (limited to 'bin/ykfde.c')
-rw-r--r--bin/ykfde.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ykfde.c b/bin/ykfde.c
index c0bcd25..44ead9a 100644
--- a/bin/ykfde.c
+++ b/bin/ykfde.c
@@ -340,12 +340,12 @@ out50:
out40:
/* close Yubikey */
- if (!yk_close_key(yk))
+ if (yk_close_key(yk) == 0)
perror("yk_close_key() failed");
out30:
/* release Yubikey */
- if (!yk_release())
+ if (yk_release() == 0)
perror("yk_release() failed");
out20: