win32: clear connection data on close
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c
index ce1fc68..032ac51 100644
--- a/src/transports/winhttp.c
+++ b/src/transports/winhttp.c
@@ -1260,6 +1260,7 @@ static int winhttp_close(git_smart_subtransport *subtransport)
int ret = 0;
gitno_connection_data_free_ptrs(&t->connection_data);
+ memset(&t->connection_data, 0x0, sizeof(gitno_connection_data));
if (t->cred) {
t->cred->free(t->cred);