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;
}