Browse Source

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 <jjelen@redhat.com>
GnuPG-bug-id: 5393
master
Jakub Jelen 2 months ago
committed by Werner Koch
parent
commit
25aa353bf8
No known key found for this signature in database GPG Key ID: E3FDFF218E45B72B
2 changed files with 1 additions and 3 deletions
  1. +0
    -2
      dirmngr/http.c
  2. +1
    -1
      dirmngr/ocsp.c

+ 0
- 2
dirmngr/http.c View File

@ -3681,7 +3681,6 @@ http_prepare_redirect (http_redir_info_t *info, unsigned int status_code,
if (!newurl)
{
err = gpg_error_from_syserror ();
http_release_parsed_uri (locuri);
return err;
}
}
@ -3700,7 +3699,6 @@ http_prepare_redirect (http_redir_info_t *info, unsigned int status_code,
if (!newurl)
{
err = gpg_error_from_syserror ();
http_release_parsed_uri (locuri);
return err;
}
}


+ 1
- 1
dirmngr/ocsp.c View File

@ -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;


Loading…
Cancel
Save