diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-06-10 17:00:07 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-06-10 17:00:07 +0000 |
commit | bced7b8253d782109657658d9e64426440dca9d3 (patch) | |
tree | 5a939a4320174ed546eec7eb28dee2ab6fe05b9a | |
parent | fb6bebb47c002ccf38949372a4aed6135e58c799 (diff) |
zero the cif struct correctly.
-rw-r--r-- | sys/netinet/ip_carp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 08b486f7622..730b688076c 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.59 2004/06/10 16:55:37 mcbride Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.60 2004/06/10 17:00:06 mcbride Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -1321,7 +1321,7 @@ carp_set_addr(struct carp_softc *sc, struct sockaddr_in *sin) goto cleanup; } - bzero(cif, sizeof(cif)); + bzero(cif, sizeof(*cif)); cif->vhif_ifp = ifp; TAILQ_INIT(&cif->vhif_vrs); ifp->if_carp = (caddr_t)cif; @@ -1492,7 +1492,7 @@ carp_set_addr6(struct carp_softc *sc, struct sockaddr_in6 *sin6) goto cleanup; } - bzero(cif, sizeof(cif)); + bzero(cif, sizeof(*cif)); cif->vhif_ifp = ifp; TAILQ_INIT(&cif->vhif_vrs); ifp->if_carp = (caddr_t)cif; |