summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-11-06 02:46:29 +0000
committermillert <millert@openbsd.org>2001-11-06 02:46:29 +0000
commitd6e110196cd4fc682c26145b6fc1ccd2c24d6010 (patch)
tree74f267031f797c6d387e84af3bbde3d211faee9f
parentRestore asyncronous RPC code now that I found the uninitialized variable (diff)
downloadwireguard-openbsd-d6e110196cd4fc682c26145b6fc1ccd2c24d6010.tar.xz
wireguard-openbsd-d6e110196cd4fc682c26145b6fc1ccd2c24d6010.zip
Must zero out timeout by hand now that it is no longer global.
-rw-r--r--usr.bin/rusers/rusers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rusers/rusers.c b/usr.bin/rusers/rusers.c
index 3f0b422f9ea..f94b401452a 100644
--- a/usr.bin/rusers/rusers.c
+++ b/usr.bin/rusers/rusers.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rusers.c,v 1.16 2001/11/06 02:22:25 millert Exp $ */
+/* $OpenBSD: rusers.c,v 1.17 2001/11/06 02:46:29 millert Exp $ */
/*
* Copyright (c) 2001 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -55,7 +55,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: rusers.c,v 1.16 2001/11/06 02:22:25 millert Exp $";
+static const char rcsid[] = "$OpenBSD: rusers.c,v 1.17 2001/11/06 02:46:29 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -516,6 +516,7 @@ allhosts(void)
memset(&baddr, 0, sizeof(baddr));
memset(&res, 0, sizeof(res));
memset(&msg, 0, sizeof(msg));
+ memset(&timeout, 0, sizeof(timeout));
args.prog = RUSERSPROG;
args.vers = RUSERSVERS_IDLE;
@@ -594,7 +595,6 @@ allhosts(void)
/*
* We stay in the select loop for ~5 seconds
*/
- timerclear(&timeout.it_value);
timeout.it_value.tv_sec = 5;
timeout.it_value.tv_usec = 0;
for (;;) {