diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-10 20:33:12 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-10 20:33:12 +0100 |
commit | 5a84d57404bdc77ec86eb0af2c884b6176626d0b (patch) | |
tree | 2928ada40fddce39b1cafbfdaad98e8bf20b1d7b | |
parent | f4fd3b71100121ae065ccaa5b58bee684c87718e (diff) | |
download | mkinitfs-5a84d57404bdc77ec86eb0af2c884b6176626d0b.tar.bz2 mkinitfs-5a84d57404bdc77ec86eb0af2c884b6176626d0b.tar.xz |
nlplug-findfs: wipe password after use
-rw-r--r-- | nlplug-findfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nlplug-findfs.c b/nlplug-findfs.c index 0df0f4c..db39c62 100644 --- a/nlplug-findfs.c +++ b/nlplug-findfs.c @@ -583,6 +583,7 @@ static void *cryptsetup_thread(void *data) CRYPT_ANY_SLOT, pass, strlen(pass), 0); pthread_mutex_unlock(&c->cryptsetup_mutex); + memset(pass, 0, sizeof(pass)); /* wipe pass after use */ if (r >= 0) goto free_out; |