Commit 70d21742bfaa65001fafa954a6a451637fec11fa

Edward Thomson 2014-12-03T00:41:46

win32: clear connection data on close

1
2
3
4
5
6
7
8
9
10
11
12
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);