]> git.ipfire.org Git - thirdparty/curl.git/commit
url: treat missing usernames in netrc as empty
authorJay Satiro <raysatiro@yahoo.com>
Wed, 29 Jun 2022 07:43:56 +0000 (03:43 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Aug 2022 15:24:22 +0000 (17:24 +0200)
commit8bd03516d62ab08972190e2ccdaa06ab1d692125
tree6eae1bdb5af7340dfec81ac0bb49a834b5ae1752
parent2fc031d834d488854ffc58bf7dbcef7fa7c1fc28
url: treat missing usernames in netrc as empty

- If, after parsing netrc, there is a password with no username then
  set a blank username.

This used to be the case prior to 7d600ad (precedes 7.82). Note
parseurlandfillconn already does the same thing for URLs.

Reported-by: Raivis <standsed@users.noreply.github.com>
Testing-by: Domen Kožar
Fixes https://github.com/curl/curl/issues/8653
Closes #9334
Closes #9066
lib/url.c