]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove unneeded memcpy.
authorPaul Querna <pquerna@apache.org>
Thu, 10 Nov 2011 15:19:15 +0000 (15:19 +0000)
committerPaul Querna <pquerna@apache.org>
Thu, 10 Nov 2011 15:19:15 +0000 (15:19 +0000)
Spotted by: Rüdiger Plüm

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200374 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_kernel.c

index 5bab98097e47499097624ca494afb63bf7110a75..c75478009ba0d880ded84612a4b86812f2fc16f2 100644 (file)
@@ -2112,8 +2112,6 @@ int ssl_callback_tlsext_tickets(SSL *ssl,
 
         RAND_pseudo_bytes(iv, EVP_MAX_IV_LENGTH);
 
-        memcpy(iv, iv, EVP_MAX_IV_LENGTH);
-
         EVP_EncryptInit_ex(cipher_ctx, EVP_aes_128_cbc(), NULL,
                            ticket->aes_key, iv);