summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/pmap_rmt.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-08-12 14:00:26 +0000
committerpeter <peter@FreeBSD.org>1996-08-12 14:00:26 +0000
commitc2fcbeb6ff1e38452f855641439831a4746ef02a (patch)
tree5ef6d941ce8ca2df8701e926198d01206fc35900 /lib/libc/rpc/pmap_rmt.c
parent633999a94babb0ab1ca53d9f3c8d9d8d70423752 (diff)
downloadFreeBSD-src-c2fcbeb6ff1e38452f855641439831a4746ef02a.zip
FreeBSD-src-c2fcbeb6ff1e38452f855641439831a4746ef02a.tar.gz
clear various struct sockaddr_in's on stack, set sin_len.
(Noticed when comparing to OpenBSD source)
Diffstat (limited to 'lib/libc/rpc/pmap_rmt.c')
-rw-r--r--lib/libc/rpc/pmap_rmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/rpc/pmap_rmt.c b/lib/libc/rpc/pmap_rmt.c
index 31d5e97..b8cc248 100644
--- a/lib/libc/rpc/pmap_rmt.c
+++ b/lib/libc/rpc/pmap_rmt.c
@@ -30,7 +30,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)pmap_rmt.c 1.21 87/08/27 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)pmap_rmt.c 2.2 88/08/01 4.0 RPCSRC";*/
-static char *rcsid = "$Id: pmap_rmt.c,v 1.6 1996/06/10 00:49:17 jraynard Exp $";
+static char *rcsid = "$Id: pmap_rmt.c,v 1.7 1996/06/10 04:59:05 wpaul Exp $";
#endif
/*
@@ -285,6 +285,7 @@ clnt_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp, eachresult)
#endif /* def FD_SETSIZE */
nets = getbroadcastnets(addrs, sock, inbuf);
bzero((char *)&baddr, sizeof (baddr));
+ baddr.sin_len = sizeof(struct sockaddr_in);
baddr.sin_family = AF_INET;
baddr.sin_port = htons(PMAPPORT);
baddr.sin_addr.s_addr = htonl(INADDR_ANY);
OpenPOWER on IntegriCloud