summaryrefslogtreecommitdiff
path: root/sys/net/pf_norm.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2018-02-06 09:16:12 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2018-02-06 09:16:12 +0000
commit4c76f3ca468fa8195c285faaf82944305d08a53e (patch)
treef0ee71d37faeb9f76af05b6055c47655212d96a9 /sys/net/pf_norm.c
parentcd2a8ba3d8649766bb213ee97dd0cacdcc743925 (diff)
some finger muscle workout:
bzero -> memset and (very few) bcopy -> memcpy/memmove
Diffstat (limited to 'sys/net/pf_norm.c')
-rw-r--r--sys/net/pf_norm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c
index 68308b027d3..f01e850d2c0 100644
--- a/sys/net/pf_norm.c
+++ b/sys/net/pf_norm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_norm.c,v 1.208 2017/06/26 18:33:24 bluhm Exp $ */
+/* $OpenBSD: pf_norm.c,v 1.209 2018/02/06 09:16:11 henning Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
@@ -1016,7 +1016,7 @@ pf_normalize_tcp_init(struct pf_pdesc *pd, struct pf_state_peer *src)
src->scrub = pool_get(&pf_state_scrub_pl, PR_NOWAIT);
if (src->scrub == NULL)
return (1);
- bzero(src->scrub, sizeof(*src->scrub));
+ memset(src->scrub, 0, sizeof(*src->scrub));
switch (pd->af) {
case AF_INET: {