netrc: when the cached file is discarded, unmark it as loaded

Pointed out by ZeroPath

Closes #19199
This commit is contained in:
Daniel Stenberg 2025-10-23 10:51:03 +02:00
parent a330117bb0
commit 9752d5fe0b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -362,6 +362,7 @@ out:
}
else {
curlx_dyn_free(filebuf);
store->loaded = FALSE;
if(!specific_login)
free(login);
free(password);