diff --git a/lib/url.c b/lib/url.c index e4c1ac8384..e4c47930a5 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2761,13 +2761,6 @@ static CURLcode set_login(struct connectdata *conn) result = CURLE_OUT_OF_MEMORY; } - /* if there's a user without password, consider password blank */ - if(conn->user && !conn->passwd) { - conn->passwd = strdup(""); - if(!conn->passwd) - result = CURLE_OUT_OF_MEMORY; - } - return result; }