mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01: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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -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…
x
Reference in New Issue
Block a user