diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-02 19:06:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-02 19:06:40 +0000 |
commit | 0afd87567cee441f46043bbe24a0f8e37ac1935a (patch) | |
tree | 6d7cca17c52400ffee47068f2f8c4dde20aa8c64 /usr.bin/rusers | |
parent | d83ba9005c291b2642cdf233be1f7c7f13018ed5 (diff) |
missing sockaddr inits; ok itojun
Diffstat (limited to 'usr.bin/rusers')
-rw-r--r-- | usr.bin/rusers/rusers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/rusers/rusers.c b/usr.bin/rusers/rusers.c index a94d5feaaa5..74ff422a8dd 100644 --- a/usr.bin/rusers/rusers.c +++ b/usr.bin/rusers/rusers.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rusers.c,v 1.19 2001/11/07 00:02:58 millert Exp $ */ +/* $OpenBSD: rusers.c,v 1.20 2002/06/02 19:06:39 deraadt 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.19 2001/11/07 00:02:58 millert Exp $"; +static const char rcsid[] = "$OpenBSD: rusers.c,v 1.20 2002/06/02 19:06:39 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -355,6 +355,8 @@ onehost(char *host) struct timeval tv = { 25, 0 }; int error; + memset(&sin, 0, sizeof sin); + hp = gethostbyname(host); if (hp == NULL) errx(1, "unknown host \"%s\"", host); |