From 43e9a771c9d669f93313aefb1da750fba4363cbe Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 3 May 2016 22:24:50 +0200 Subject: do not crypt_free() when crypt_status() fails --- bin/ykfde.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3-70-g09d2