diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-11-21 20:04:46 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-11-21 20:05:29 +0200 |
commit | 81678aa59d3acf066b91245cf281cd1f66be8531 (patch) | |
tree | b497129957514bca0d0af86a0dc6656ffbe4fb6f /nlplug-findfs.c | |
parent | ca9c1938ca136ebd5f341f9fb01b822905f41906 (diff) | |
download | mkinitfs-81678aa59d3acf066b91245cf281cd1f66be8531.tar.bz2 mkinitfs-81678aa59d3acf066b91245cf281cd1f66be8531.tar.xz |
nlplug-findfs: accept passphrase of non-zero slots
ref #6473
Diffstat (limited to 'nlplug-findfs.c')
-rw-r--r-- | nlplug-findfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nlplug-findfs.c b/nlplug-findfs.c index 78a5ebe..b0281a0 100644 --- a/nlplug-findfs.c +++ b/nlplug-findfs.c @@ -411,7 +411,7 @@ static void *cryptsetup_thread(void *data) pass, strlen(pass), 0); pthread_mutex_unlock(&c->cryptsetup_mutex); - if (r == 0) + if (r >= 0) break; printf("No key available with this passphrase.\n"); } |