[Pkg-gnupg-commit] [gnupg2] 110/185: dirmngr: Amend TLS handling.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Aug 7 11:55:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 1ba220e68149fdb197accf4a15b0a11126c8b431
Author: Justus Winter <justus at g10code.com>
Date:   Wed Jul 19 11:07:59 2017 +0200

    dirmngr: Amend TLS handling.
    
    * dirmngr/http.c (http_wait_response): Get the 'use_tls' flag from the
    write cookie, not from the URI.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 dirmngr/http.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dirmngr/http.c b/dirmngr/http.c
index b63beb6..29854b5 100644
--- a/dirmngr/http.c
+++ b/dirmngr/http.c
@@ -1064,6 +1064,7 @@ http_wait_response (http_t hd)
 {
   gpg_error_t err;
   cookie_t cookie;
+  int use_tls;
 
   /* Make sure that we are in the data. */
   http_start_data (hd);
@@ -1074,6 +1075,7 @@ http_wait_response (http_t hd)
   if (!cookie)
     return gpg_err_make (default_errsource, GPG_ERR_INTERNAL);
 
+  use_tls = cookie->use_tls;
   es_fclose (hd->fp_write);
   hd->fp_write = NULL;
   /* The close has released the cookie and thus we better set it to NULL.  */
@@ -1092,7 +1094,7 @@ http_wait_response (http_t hd)
     return gpg_err_make (default_errsource, gpg_err_code_from_syserror ());
   cookie->sock = my_socket_ref (hd->sock);
   cookie->session = http_session_ref (hd->session);
-  cookie->use_tls = hd->uri->use_tls;
+  cookie->use_tls = use_tls;
 
   hd->read_cookie = cookie;
   hd->fp_read = es_fopencookie (cookie, "r", cookie_functions);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list