summaryrefslogtreecommitdiff
path: root/sys/net/if_pflog.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_pflog.c')
-rw-r--r--sys/net/if_pflog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c
index 193541f9983..e4d9b5368e5 100644
--- a/sys/net/if_pflog.c
+++ b/sys/net/if_pflog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflog.c,v 1.64 2014/09/08 18:10:01 bluhm Exp $ */
+/* $OpenBSD: if_pflog.c,v 1.65 2014/12/02 18:11:56 tedu Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -117,7 +117,7 @@ pflogifs_resize(size_t n)
if (n == 0)
p = NULL;
else
- if ((p = malloc(n * sizeof(*p), M_DEVBUF,
+ if ((p = mallocarray(n, sizeof(*p), M_DEVBUF,
M_NOWAIT|M_ZERO)) == NULL)
return (ENOMEM);
for (i = 0; i < n; i++)