diff --git a/lib/url.c b/lib/url.c index c63cf072e6..ec4fb8b1b0 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2200,10 +2200,9 @@ static CURLcode override_login(struct Curl_easy *data, if(result) goto out; } - else if(data->state.creds) { + else /* only search when something is still missing */ Curl_creds_link(&ncreds_in, data->state.creds); - } break; default: /* ignore credentials from other sources */