diff options
author | Jakub Jelen <[email protected]> | 2021-04-12 17:48:31 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2021-05-20 12:33:35 +0000 |
commit | 25aa353bf833fdae1a96158b49daf7588ae3b109 (patch) | |
tree | c91c44e83e77e527b8728e351ca7ca371ca09bdf /dirmngr/ocsp.c | |
parent | common: Avoid double-free (diff) | |
download | gnupg-25aa353bf833fdae1a96158b49daf7588ae3b109.tar.gz gnupg-25aa353bf833fdae1a96158b49daf7588ae3b109.zip |
dirmgr: Avoid double free
* dirmgr/http.c (http_prepare_redirect): Avoid double free
* dirmgr/ocsp.c (check_signature): Initialize pointer
--
Signed-off-by: Jakub Jelen <[email protected]>
GnuPG-bug-id: 5393
Diffstat (limited to 'dirmngr/ocsp.c')
-rw-r--r-- | dirmngr/ocsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/ocsp.c b/dirmngr/ocsp.c index 6864f9854..6ec760d81 100644 --- a/dirmngr/ocsp.c +++ b/dirmngr/ocsp.c @@ -450,7 +450,7 @@ check_signature (ctrl_t ctrl, { gpg_error_t err; int algo, cert_idx; - gcry_sexp_t s_hash; + gcry_sexp_t s_hash = NULL; ksba_cert_t cert; const char *s; |