From 790e572a83b827ace1ed6ee87a9614e24af34d85 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 22 Jul 1996 10:01:18 +0000 Subject: bzero sockaddr_in --- src/lib/libc/net/rcmd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib') diff --git a/src/lib/libc/net/rcmd.c b/src/lib/libc/net/rcmd.c index 5796364cc6..22a956cfb0 100644 --- a/src/lib/libc/net/rcmd.c +++ b/src/lib/libc/net/rcmd.c @@ -99,6 +99,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p) return (-1); } fcntl(s, F_SETOWN, pid); + bzero(&sin, sizeof sin); sin.sin_len = sizeof(struct sockaddr_in); sin.sin_family = hp->h_addrtype; sin.sin_port = rport; -- cgit v1.2.3-55-g6feb