summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2004-01-18 16:56:57 +0000
committerAndy Polyakov <appro@openssl.org>2004-01-18 16:56:57 +0000
commit2217e86cd0f0cdd5afa94b88d0c4476855197ef2 (patch)
treebf567fe470bc9d4b3149f25d62e351f317deca68
parent0dbd9ccc06e02be6a80d99c31aae5a7ee777e086 (diff)
Buffer overrun in e_rc4.c was fixed in Nov 2002 in HEAD and 0_9_7 branches,
but never made to 0_9_6... PR: 811
-rw-r--r--crypto/evp/e_rc4.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/evp/e_rc4.c b/crypto/evp/e_rc4.c
index 1c1e3b3857..48f60e6231 100644
--- a/crypto/evp/e_rc4.c
+++ b/crypto/evp/e_rc4.c
@@ -110,9 +110,8 @@ EVP_CIPHER *EVP_rc4_40(void)
static int rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
const unsigned char *iv, int enc)
{
- memcpy(&(ctx->c.rc4.key[0]),key,EVP_CIPHER_CTX_key_length(ctx));
RC4_set_key(&(ctx->c.rc4.ks),EVP_CIPHER_CTX_key_length(ctx),
- ctx->c.rc4.key);
+ key);
return 1;
}