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
This commit is contained in:
Jakub Jelen 2021-04-12 19:48:31 +02:00 committed by Werner Koch
parent 4704d1ce4e
commit 25aa353bf8
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 1 additions and 3 deletions

View File

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

View File

@ -450,7 +450,7 @@ check_signature (ctrl_t ctrl,
{ {
gpg_error_t err; gpg_error_t err;
int algo, cert_idx; int algo, cert_idx;
gcry_sexp_t s_hash; gcry_sexp_t s_hash = NULL;
ksba_cert_t cert; ksba_cert_t cert;
const char *s; const char *s;