]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
netrc: when the cached file is discarded, unmark it as loaded bagder/netrc-file-unloaded 19199/head
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 08:51:03 +0000 (10:51 +0200)
Pointed out by ZeroPath

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);