diff options
author | pjd <pjd@FreeBSD.org> | 2013-12-15 22:51:26 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2013-12-15 22:51:26 +0000 |
commit | 170007786b70f8b6c757ce9ce2c4817d0a85d701 (patch) | |
tree | 5cc4cf48a201f750d32240593cef7598f1c85c71 /sys/geom/eli/g_eli.c | |
parent | 4a6e65ab031a22ac1c2d6f7a7d6837d3fdcbbed0 (diff) | |
download | FreeBSD-src-170007786b70f8b6c757ce9ce2c4817d0a85d701.zip FreeBSD-src-170007786b70f8b6c757ce9ce2c4817d0a85d701.tar.gz |
Clear content of keyfiles loaded by the loader after processing them.
Pointed out by: rwatson
MFC after: 1 week
Diffstat (limited to 'sys/geom/eli/g_eli.c')
-rw-r--r-- | sys/geom/eli/g_eli.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/eli/g_eli.c b/sys/geom/eli/g_eli.c index 2d21ab3b..e0d0074 100644 --- a/sys/geom/eli/g_eli.c +++ b/sys/geom/eli/g_eli.c @@ -990,6 +990,7 @@ g_eli_keyfiles_load(struct hmac_ctx *ctx, const char *provider) G_ELI_DEBUG(1, "Loaded keyfile %s for %s (type: %s).", file, provider, name); g_eli_crypto_hmac_update(ctx, data, size); + bzero(data, size); } } |