]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http.c
credential: parse URL without host as empty host, not unset
[thirdparty/git.git] / http.c
diff --git a/http.c b/http.c
index a5bd5d62c22c054f82b9971fc1f320c643f1d6fb..29de6bbb23abfe3be6d4863909e4df3d31a35f95 100644 (file)
--- a/http.c
+++ b/http.c
@@ -524,6 +524,7 @@ static int has_cert_password(void)
                return 0;
        if (!cert_auth.password) {
                cert_auth.protocol = xstrdup("cert");
+               cert_auth.host = xstrdup("");
                cert_auth.username = xstrdup("");
                cert_auth.path = xstrdup(ssl_cert);
                credential_fill(&cert_auth);