summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-22 10:01:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-22 10:01:19 +0000
commit6b338f3c5c312ce8b2b01a212a2f7b1343eee0f6 (patch)
tree9287650510544040001e98e068585f447fb8b259 /lib/libc/net
parent5a9e962ff25b3c6260d6a5c8d0fa57a7198a1147 (diff)
bzero sockaddr_in
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/rcmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index 5796364cc68..22a956cfb05 100644
--- a/lib/libc/net/rcmd.c
+++ b/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;