Unverified Commit 2f5f3cfd by Edward Thomson Committed by GitHub

Merge pull request #4880 from libgit2/ethomson/smart_transport_url

smart transport: only clear url on hard reset (regression)
parents fa7aba70 9ad96367
......@@ -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