]> sjero.net Git - wget/blobdiff - src/http.c
[svn] Fix loading of cookies.
[wget] / src / http.c
index 42b2dbcb89c2cf67c1a575506eb9d320c41cb305..647442883a75686c981895502708b9e0a7265a16 100644 (file)
@@ -1381,7 +1381,10 @@ http_loop (struct urlinfo *u, char **newloc, int *dt)
      here so that we don't go through the hoops if we're just using
      FTP or whatever. */
   if (opt.cookies && opt.cookies_input && !cookies_loaded_p)
-    load_cookies (opt.cookies_input);
+    {
+      load_cookies (opt.cookies_input);
+      cookies_loaded_p = 1;
+    }
 
   *newloc = NULL;