Hi,

I think the check of src/recur.c:download_child_p() is incomplete
in case of --with-ssl.

Best regards.

----
OHARA Shigeki <[EMAIL PROTECTED]>


diff -urN wget-1.8.2.orig/src/recur.c wget-1.8.2/src/recur.c
--- wget-1.8.2.orig/src/recur.c Mon May 27 23:00:06 2002
+++ wget-1.8.2/src/recur.c      Thu Mar 13 17:16:18 2003
@@ -551,7 +551,12 @@
   }
 
   /* 7. */
-  if (u->scheme == parent->scheme)
+  if (u->scheme == parent->scheme
+#ifdef HAVE_SSL
+      || ((u->scheme == SCHEME_HTTP || u->scheme == SCHEME_HTTPS)
+         && (parent->scheme == SCHEME_HTTP || parent->scheme == SCHEME_HTTPS))
+#endif
+      )
     if (!opt.spanhost && 0 != strcasecmp (parent->host, u->host))
       {
        DEBUGP (("This is not the same hostname as the parent's (%s and %s).\n",

Reply via email to