From f63cb33bf7e29ee6ba85dbeb12a51f1fba4bab1e Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 18 Feb 2024 15:53:54 +0000 Subject: Align EVP_CIPHER_CTX_init() and _legacy_clear() --- src/lib/libcrypto/evp/evp_cipher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/evp') diff --git a/src/lib/libcrypto/evp/evp_cipher.c b/src/lib/libcrypto/evp/evp_cipher.c index 94eb42a807..12fa6e1d27 100644 --- a/src/lib/libcrypto/evp/evp_cipher.c +++ b/src/lib/libcrypto/evp/evp_cipher.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_cipher.c,v 1.18 2024/02/18 15:41:50 tb Exp $ */ +/* $OpenBSD: evp_cipher.c,v 1.19 2024/02/18 15:53:54 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -615,7 +615,7 @@ EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) void EVP_CIPHER_CTX_init(EVP_CIPHER_CTX *ctx) { - memset(ctx, 0, sizeof(EVP_CIPHER_CTX)); + memset(ctx, 0, sizeof(*ctx)); } void -- cgit v1.2.3-55-g6feb