diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-08-30 19:33:27 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-08-30 19:33:27 +0000 |
commit | c63068ab05fa196799cc2508e7a654b04b39a56f (patch) | |
tree | 1a586aead9e1d3b82a7c892f3c454fd79a0a3bdd /lib | |
parent | 975df0051921999deb5f9ec410f0c48df8270c15 (diff) |
chacha20_poly1305_cleanup() should return 1
Otherwise EVP_CIPHER_CTX_cleanup() leaks, as spotted by the ASAN CI.
ok jsing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/evp/e_chacha20poly1305.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/evp/e_chacha20poly1305.c b/lib/libcrypto/evp/e_chacha20poly1305.c index 422eb23758b..674a323258f 100644 --- a/lib/libcrypto/evp/e_chacha20poly1305.c +++ b/lib/libcrypto/evp/e_chacha20poly1305.c @@ -1,4 +1,4 @@ -/* $OpenBSD: e_chacha20poly1305.c,v 1.24 2022/08/21 10:47:09 tb Exp $ */ +/* $OpenBSD: e_chacha20poly1305.c,v 1.25 2022/08/30 19:33:26 tb Exp $ */ /* * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> @@ -537,7 +537,7 @@ chacha20_poly1305_cleanup(EVP_CIPHER_CTX *ctx) explicit_bzero(cpx, sizeof(*cpx)); - return 0; + return 1; } static int |