summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-09-16 16:00:28 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-09-16 16:00:28 +0000
commit9d189a107ed10460d3c6b028c8bdcca3d8076ada (patch)
tree7190d185228b0bc4324ecd3b62038df0cb8aff0e /sys
parent52c7b51fae674542a0130bba617e7cc81e630dad (diff)
another M_ZERO diff.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_pflog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c
index 56907c3d4a7..26818e939be 100644
--- a/sys/net/if_pflog.c
+++ b/sys/net/if_pflog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflog.c,v 1.24 2007/05/26 17:13:30 jason Exp $ */
+/* $OpenBSD: if_pflog.c,v 1.25 2007/09/16 16:00:27 pyr Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -107,9 +107,9 @@ pflog_clone_create(struct if_clone *ifc, int unit)
if (unit >= PFLOGIFS_MAX)
return (EINVAL);
- if ((pflogif = malloc(sizeof(*pflogif), M_DEVBUF, M_NOWAIT)) == NULL)
+ if ((pflogif = malloc(sizeof(*pflogif),
+ M_DEVBUF, M_NOWAIT|M_ZERO)) == NULL)
return (ENOMEM);
- bzero(pflogif, sizeof(*pflogif));
pflogif->sc_unit = unit;
ifp = &pflogif->sc_if;