Commit 792d750bed52070ffd10ecb96d12c4889c162ee4

Carlos Martín Nieto 2014-12-03T13:38:48

Merge pull request #2741 from ethomson/fetch-twice 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);