]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
httpc: fix the hc_efd inconsistency, fixes #4464 v4.2.3
authorJaroslav Kysela <perex@perex.cz>
Sat, 1 Jul 2017 07:22:23 +0000 (09:22 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 1 Jul 2017 07:22:23 +0000 (09:22 +0200)
src/httpc.c

index c62bd4e331a4b509adea8f25decb2a1a303fc2f8..65d6ac79e6be921db0c24e432f80ef0d4df7159f 100644 (file)
@@ -1298,12 +1298,12 @@ http_client_simple_reconnect ( http_client_t *hc, const url_t *u,
     http_client_shutdown(hc, 1, 1);
     r = http_client_reconnect(hc, hc->hc_version,
                               u->scheme, u->host, u->port);
+    hc->hc_efd = efd;
     if (r < 0)
       return r;
     r = hc->hc_verify_peer;
     hc->hc_verify_peer = -1;
     http_client_ssl_peer_verify(hc, r);
-    hc->hc_efd = efd;
   }
 
   http_client_flush(hc, 0);