summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-08-19 22:23:52 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-08-19 22:23:52 +0000
commit1480108cd4e75c6b7519346a096eec0ee7d2593b (patch)
treefe13237cd06bfe852f564e34f032550747e1ea07
parent4dac4ae5d1ec7cb06746ba790bbee8180a280c16 (diff)
fix tv_usec setting. deraadt
-rw-r--r--usr.sbin/faithd/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/faithd/ftp.c b/usr.sbin/faithd/ftp.c
index 5279d800e43..9f43c6145f8 100644
--- a/usr.sbin/faithd/ftp.c
+++ b/usr.sbin/faithd/ftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftp.c,v 1.10 2002/09/08 01:20:15 itojun Exp $ */
+/* $OpenBSD: ftp.c,v 1.11 2003/08/19 22:23:51 itojun Exp $ */
/* $KAME: ftp.c,v 1.20 2002/09/08 01:12:30 itojun Exp $ */
/*
@@ -239,7 +239,7 @@ ftp_activeconn()
exit_failure("descriptor too big");
FD_SET(wport4, &set);
timeout.tv_sec = 120;
- timeout.tv_usec = -1;
+ timeout.tv_usec = 0;
n = sizeof(data4);
if (select(wport4 + 1, &set, NULL, NULL, &timeout) == 0
|| (port4 = accept(wport4, (struct sockaddr *)&data4, &n)) < 0) {