aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-05-03 22:24:50 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-05-03 22:24:50 +0200
commit43e9a771c9d669f93313aefb1da750fba4363cbe (patch)
tree58f67346aea5815cbd997b1cc6a2290311f17c6d
parent0af664efb9471b58244180dcbe16f5b45fd9792e (diff)
downloadmkinitcpio-ykfde-43e9a771c9d669f93313aefb1da750fba4363cbe.tar.gz
mkinitcpio-ykfde-43e9a771c9d669f93313aefb1da750fba4363cbe.tar.zst
do not crypt_free() when crypt_status() fails
-rw-r--r--bin/ykfde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ykfde.c b/bin/ykfde.c
index 59b958d..1e70cbf 100644
--- a/bin/ykfde.c
+++ b/bin/ykfde.c
@@ -252,7 +252,7 @@ int main(int argc, char **argv) {
if (cryptstatus != CRYPT_ACTIVE && cryptstatus != CRYPT_BUSY) {
rc = EXIT_FAILURE;
fprintf(stderr, "Device %s is invalid or inactive.\n", device_name);
- goto out60;
+ goto out50;
}
/* initialize crypt device */