diff options
author | Christian Hesse <mail@eworm.de> | 2016-05-04 13:55:52 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-05-04 13:55:52 +0200 |
commit | b133e70d60a7791c350ba0cf9fb4604bdbd18c9a (patch) | |
tree | b0a473d19d0f41ea47425866257afe569fe4e3c1 /udev/ykfde.c | |
parent | f1d3e2f2170c9bd7fbfe215e586ecd1fd580904a (diff) | |
download | mkinitcpio-ykfde-b133e70d60a7791c350ba0cf9fb4604bdbd18c9a.tar.gz mkinitcpio-ykfde-b133e70d60a7791c350ba0cf9fb4604bdbd18c9a.tar.zst |
fix error condition for yk_close_key() and yk_release()
Diffstat (limited to 'udev/ykfde.c')
-rw-r--r-- | udev/ykfde.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/udev/ykfde.c b/udev/ykfde.c index 246425f..64d031d 100644 --- a/udev/ykfde.c +++ b/udev/ykfde.c @@ -337,12 +337,12 @@ out40: out30: /* close Yubikey */ - if (yk_close_key(yk) < 0) + if (yk_close_key(yk) == 0) perror("yk_close_key() failed"); out20: /* release Yubikey */ - if (yk_release() < 0) + if (yk_release() == 0) perror("yk_release() failed"); out10: |