summaryrefslogtreecommitdiffstats
path: root/dirmngr/http.c
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2021-04-12 19:48:31 +0200
committerWerner Koch <wk@gnupg.org>2021-05-20 14:33:35 +0200
commit25aa353bf833fdae1a96158b49daf7588ae3b109 (patch)
treec91c44e83e77e527b8728e351ca7ca371ca09bdf /dirmngr/http.c
parentcommon: Avoid double-free (diff)
downloadgnupg2-25aa353bf833fdae1a96158b49daf7588ae3b109.tar.xz
gnupg2-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 <jjelen@redhat.com> GnuPG-bug-id: 5393
Diffstat (limited to 'dirmngr/http.c')
-rw-r--r--dirmngr/http.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/dirmngr/http.c b/dirmngr/http.c
index 74ce5f465..c662b1b95 100644
--- a/dirmngr/http.c
+++ b/dirmngr/http.c
@@ -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;
}
}