Graham Gillies <[EMAIL PROTECTED]> writes:

> I picked up 1.5.3 and the patch from the mailing list originally
> implementing this feature, then addad a bzero() of the sockaddr_in
> structure used in the bind call before the values are filled in and
> it seems to work now.
> 
> I had a look at the 1.6 source but I'm not too sure where to fix it.

Does this patch fix the problem?

Index: src/init.c
===================================================================
RCS file: /pack/anoncvs/wget/src/init.c,v
retrieving revision 1.23
diff -u -r1.23 init.c
--- src/init.c  2001/03/30 22:36:58     1.23
+++ src/init.c  2001/04/01 20:05:48
@@ -497,6 +497,7 @@
 cmd_address (const char *com, const char *val, void *closure)
 {
   struct sockaddr_in sin;
+  memset (&sin, '\0', sizeof (sin));
 
   if (!store_hostaddress ((unsigned char *)&sin.sin_addr, val))
     {

Reply via email to