Commit b5d1c3d4 authored by Geoff Simmons's avatar Geoff Simmons

Bugfix use of stack-local crypto handle in symmetric.decrypt()

parent 288d5171
......@@ -466,9 +466,8 @@ vmod_symmetric_decrypt(VRT_CTX, struct vmod_gcrypt_symmetric *symmetric,
return NULL;
}
}
if ((err = gcry_cipher_decrypt(symmetric->hd, plaintext->priv,
ciphertext->len, ciphertext->priv,
ciphertext->len))
if ((err = gcry_cipher_decrypt(hd, plaintext->priv, ciphertext->len,
ciphertext->priv, ciphertext->len))
!= GPG_ERR_NO_ERROR) {
VERR(ctx, "in %s.decrypt(): %s/%s", symmetric->vcl_name,
gcry_strsource(err), gcry_strerror(err));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment