Unverified Commit 313440c3 by Edward Thomson Committed by GitHub

Merge pull request #4916 from libgit2/ethomson/backport_0278

smart transport: only clear url on hard reset
parents f23dc5b2 8bc913a2
......@@ -45,14 +45,13 @@ GIT_INLINE(int) git_smart__reset_stream(transport_smart *t, bool close_subtransp
t->current_stream = NULL;
}
if (t->url) {
if (close_subtransport) {
git__free(t->url);
t->url = NULL;
}
if (close_subtransport &&
t->wrapped->close(t->wrapped) < 0)
return -1;
if (t->wrapped->close(t->wrapped) < 0)
return -1;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment