aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/geom/eli/g_eli_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/eli/g_eli_crypto.c b/sys/geom/eli/g_eli_crypto.c
index ca8170db7e4d..441bedb030b8 100644
--- a/sys/geom/eli/g_eli_crypto.c
+++ b/sys/geom/eli/g_eli_crypto.c
@@ -112,7 +112,7 @@ g_eli_crypto_cipher(u_int algo, int enc, u_char *data, size_t datasize,
{
EVP_CIPHER_CTX *ctx;
const EVP_CIPHER *type;
- u_char iv[keysize];
+ u_char iv[G_ELI_IVKEYLEN];
int outsize;
assert(algo != CRYPTO_AES_XTS);