[Privoxy-commits] [privoxy] branch master updated: OpenSSL generate_key(): Check EVP_RSA_gen()'s return value
User Git
git at git.privoxy.org
Thu Jul 11 10:23:41 CEST 2024
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
The following commit(s) were added to refs/heads/master by this push:
new b4d45ec0 OpenSSL generate_key(): Check EVP_RSA_gen()'s return value
b4d45ec0 is described below
commit b4d45ec090c208cb1715c246bb5431eeaf1162ea
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Jul 11 10:21:03 2024 +0200
OpenSSL generate_key(): Check EVP_RSA_gen()'s return value
---
openssl.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/openssl.c b/openssl.c
index f3920370..ba2fc3e1 100644
--- a/openssl.c
+++ b/openssl.c
@@ -1538,6 +1538,12 @@ static int generate_key(struct client_state *csp, char **key_buf)
}
#else
key = EVP_RSA_gen(RSA_KEYSIZE);
+ if (key == NULL)
+ {
+ log_error(LOG_LEVEL_ERROR, "EVP_RSA_gen() failed");
+ ret = -1;
+ goto exit;
+ }
#endif
/*
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list