=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/fetch.c,v retrieving revision 1.38 retrieving revision 1.39 diff -c -r1.38 -r1.39 *** src/usr.bin/ftp/fetch.c 2002/02/16 21:27:46 1.38 --- src/usr.bin/ftp/fetch.c 2002/05/30 06:51:46 1.39 *************** *** 1,4 **** ! /* $OpenBSD: fetch.c,v 1.38 2002/02/16 21:27:46 millert Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: fetch.c,v 1.39 2002/05/30 06:51:46 deraadt Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- *************** *** 38,44 **** */ #ifndef lint ! static char rcsid[] = "$OpenBSD: fetch.c,v 1.38 2002/02/16 21:27:46 millert Exp $"; #endif /* not lint */ /* --- 38,44 ---- */ #ifndef lint ! static char rcsid[] = "$OpenBSD: fetch.c,v 1.39 2002/05/30 06:51:46 deraadt Exp $"; #endif /* not lint */ /* *************** *** 285,291 **** host, portnum, path, savefile); memset(&hints, 0, sizeof(hints)); ! hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM; port = portnum ? portnum : httpport; error = getaddrinfo(host, port, &hints, &res0); --- 285,291 ---- host, portnum, path, savefile); memset(&hints, 0, sizeof(hints)); ! hints.ai_family = family; hints.ai_socktype = SOCK_STREAM; port = portnum ? portnum : httpport; error = getaddrinfo(host, port, &hints, &res0);