summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-01-18 17:53:55 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-01-18 17:53:55 +0000
commite03e5456137f26f05d515025983b640f469082a7 (patch)
tree948bf92db13630012ffc4c4de9da8fa3c0bb0d3b
parent8ec45e34edfee537f5d18e9768df8ca6470f90c3 (diff)
illiminate memset gcc generated call, just like prev commit to
the XNS code.
-rw-r--r--sys/netipx/ipx_usrreq.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netipx/ipx_usrreq.c b/sys/netipx/ipx_usrreq.c
index 027e80cd706..80a32cd59df 100644
--- a/sys/netipx/ipx_usrreq.c
+++ b/sys/netipx/ipx_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipx_usrreq.c,v 1.4 1996/12/23 08:47:04 mickey Exp $ */
+/* $OpenBSD: ipx_usrreq.c,v 1.5 1997/01/18 17:53:54 mickey Exp $ */
/*-
*
@@ -93,7 +93,7 @@ ipx_input(m, va_alist)
register struct ipxpcb *ipxp;
register struct ipx *ipx = mtod(m, struct ipx *);
struct ifnet *ifp = m->m_pkthdr.rcvif;
- struct sockaddr_ipx ipx_ipx = { sizeof(ipx_ipx), AF_IPX };
+ struct sockaddr_ipx ipx_ipx;
va_list ap;
va_start(ap, m);
@@ -106,6 +106,9 @@ ipx_input(m, va_alist)
* Construct sockaddr format source address.
* Stuff source address and datagram in user buffer.
*/
+ bzero(&ipx_ipx, sizeof(ipx_ipx));
+ ipx_ipx.sipx_len = sizeof(ipx_ipx);
+ ipx_ipx.sipx_family = AF_IPX;
ipx_ipx.sipx_addr = ipx->ipx_sna;
if (ipx_neteqnn(ipx->ipx_sna.ipx_net, ipx_zeronet) && ifp) {
register struct ifaddr *ifa;