From 254c00aa7d6a4cbe8b4a0cb02fc2699d72a13cda Mon Sep 17 00:00:00 2001 From: 7heo <7heo@mail.com> Date: Wed, 28 Sep 2016 00:12:22 +0200 Subject: nlplug-findfs: Better messages --- nlplug-findfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nlplug-findfs.c b/nlplug-findfs.c index 3f6680d..f4fed71 100644 --- a/nlplug-findfs.c +++ b/nlplug-findfs.c @@ -585,9 +585,10 @@ static void *cryptsetup_thread(void *data) pthread_mutex_unlock(&c->cryptsetup_mutex); if (r >= 0) - break; + goto free_out; printf("No key available with this passphrase.\n"); } + printf("Mounting %s failed, amount of tries exhausted.\n", c->crypt.devnode); free_out: crypt_free(cd); -- cgit v1.2.3