mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
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:
parent
4704d1ce4e
commit
25aa353bf8
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user