Commit fdc5c38e406612ffccfab3f3e90013c63cee3a7b

Michael Schubert 2012-06-05T23:03:06

transports: fix buglet

diff --git a/src/transports/git.c b/src/transports/git.c
index d99137b..45f571f 100644
--- a/src/transports/git.c
+++ b/src/transports/git.c
@@ -414,7 +414,7 @@ static int git_close(git_transport *t)
 		return -1;
 	}
 
-	t->parent.connected = 0;
+	t->connected = 0;
 
 #ifdef GIT_WIN32
 	WSACleanup();
diff --git a/src/transports/http.c b/src/transports/http.c
index 4aa2eda..4139a2f 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -613,7 +613,7 @@ static int http_close(git_transport *transport)
 		return -1;
 	}
 
-	t->parent.connected = 0;
+	transport->connected = 0;
 
 	return 0;
 }