]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
netrc: when the cached file is discarded, unmark it as loaded
authorDaniel Stenberg <daniel@haxx.se>
Thu, 23 Oct 2025 08:51:03 +0000 (10:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Oct 2025 11:05:25 +0000 (13:05 +0200)
Pointed out by ZeroPath

Closes #19199

lib/netrc.c

index 1309d309423733d91c9edbea5d2347d44e33604f..9c5c6c7f20c848e3c228b608529b9229935026c4 100644 (file)
@@ -362,6 +362,7 @@ out:
   }
   else {
     curlx_dyn_free(filebuf);
+    store->loaded = FALSE;
     if(!specific_login)
       free(login);
     free(password);