Commit 256961e45d574ace62a7a7d13b697aa05e8a9466

Ben Straub 2013-09-26T16:36:05

WHOOPS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c
index e2a4acf..067d6fc 100644
--- a/src/transports/winhttp.c
+++ b/src/transports/winhttp.c
@@ -602,8 +602,7 @@ replay:
 
 			if (!git__prefixcmp_icase(location8, prefix_https)) {
 				/* Upgrade to secure connection; disconnect and start over */
-				gitno_connection_data data = { 0 };
-				if (gitno_connection_data_from_url(&data, location8, s->service_url) < 0)
+				if (gitno_connection_data_from_url(&t->connection_data, location8, s->service_url) < 0)
 					return -1;
 				winhttp_connect(t, location8);
 			}