diff --git a/src/transports/http.c b/src/transports/http.c index 30520a05d..efa638356 100644 --- a/src/transports/http.c +++ b/src/transports/http.c @@ -599,6 +599,7 @@ static int http_connect(http_subtransport *t) git_stream_close(t->io); git_stream_free(t->io); t->io = NULL; + t->connected = 0; } if (t->connection_data.use_ssl) {