diff options
| author | tb <> | 2022-08-30 19:33:26 +0000 |
|---|---|---|
| committer | tb <> | 2022-08-30 19:33:26 +0000 |
| commit | 8eb5f2eb582d7c3cd2e4fe43a61347f0f802d9ab (patch) | |
| tree | 1031ecb4b5761528a2a54fe4d83080d36db58329 /src | |
| parent | c364f0902430d04cc0655bcf6e0aea5961401575 (diff) | |
| download | openbsd-8eb5f2eb582d7c3cd2e4fe43a61347f0f802d9ab.tar.gz openbsd-8eb5f2eb582d7c3cd2e4fe43a61347f0f802d9ab.tar.bz2 openbsd-8eb5f2eb582d7c3cd2e4fe43a61347f0f802d9ab.zip | |
chacha20_poly1305_cleanup() should return 1
Otherwise EVP_CIPHER_CTX_cleanup() leaks, as spotted by the ASAN CI.
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/evp/e_chacha20poly1305.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/e_chacha20poly1305.c b/src/lib/libcrypto/evp/e_chacha20poly1305.c index 422eb23758..674a323258 100644 --- a/src/lib/libcrypto/evp/e_chacha20poly1305.c +++ b/src/lib/libcrypto/evp/e_chacha20poly1305.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_chacha20poly1305.c,v 1.24 2022/08/21 10:47:09 tb Exp $ */ | 1 | /* $OpenBSD: e_chacha20poly1305.c,v 1.25 2022/08/30 19:33:26 tb Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2022 Joel Sing <jsing@openbsd.org> |
| @@ -537,7 +537,7 @@ chacha20_poly1305_cleanup(EVP_CIPHER_CTX *ctx) | |||
| 537 | 537 | ||
| 538 | explicit_bzero(cpx, sizeof(*cpx)); | 538 | explicit_bzero(cpx, sizeof(*cpx)); |
| 539 | 539 | ||
| 540 | return 0; | 540 | return 1; |
| 541 | } | 541 | } |
| 542 | 542 | ||
| 543 | static int | 543 | static int |
