Fix bogus warnings
[openssl.git] / crypto / evp / e_rc4_hmac_md5.c
index 28b12c7c26a899a5ca34d470609f84b8e311556d..832daef1789cbdd6cabb337c716d8736bc87f1ca 100644 (file)
@@ -213,6 +213,8 @@ static int rc4_hmac_md5_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg,
             MD5_Init(&key->tail);
             MD5_Update(&key->tail, hmac_key, sizeof(hmac_key));
 
+            OPENSSL_cleanse(hmac_key, sizeof(hmac_key));
+
             return 1;
         }
     case EVP_CTRL_AEAD_TLS1_AAD: