diff options
author | Werner Koch <[email protected]> | 2016-07-14 13:58:56 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-07-14 13:58:56 +0000 |
commit | be1e4560d5afb99a6a7b7c639cce980006530a9e (patch) | |
tree | 0ba98e2dbc56153cb5f6e1c50b2adc259965a40e /dirmngr/ks-engine-http.c | |
parent | Merge branch 'master' into STABLE-BRANCH-2-2 (diff) | |
parent | po: Auto-update translations (diff) | |
download | gnupg-be1e4560d5afb99a6a7b7c639cce980006530a9e.tar.gz gnupg-be1e4560d5afb99a6a7b7c639cce980006530a9e.zip |
Merge branch 'master' into STABLE-BRANCH-2-2
Diffstat (limited to '')
-rw-r--r-- | dirmngr/ks-engine-http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dirmngr/ks-engine-http.c b/dirmngr/ks-engine-http.c index 00d0c4b80..adee04f1b 100644 --- a/dirmngr/ks-engine-http.c +++ b/dirmngr/ks-engine-http.c @@ -73,6 +73,7 @@ ks_http_fetch (ctrl_t ctrl, const char *url, estream_t *r_fp) estream_t fp = NULL; char *request_buffer = NULL; + once_more: /* Note that we only use the system provided certificates with the * fetch command. */ err = http_session_new (&session, NULL, NULL, HTTP_FLAG_TRUST_SYS); @@ -81,7 +82,6 @@ ks_http_fetch (ctrl_t ctrl, const char *url, estream_t *r_fp) http_session_set_log_cb (session, cert_log_cb); *r_fp = NULL; - once_more: err = http_open (&http, HTTP_REQ_GET, url, @@ -146,6 +146,7 @@ ks_http_fetch (ctrl_t ctrl, const char *url, estream_t *r_fp) url = request_buffer; http_close (http, 0); http = NULL; + http_session_release (session); goto once_more; } err = gpg_error_from_syserror (); |