Also memset the pfctl struct in pfctl_reset.
OK jan@
-/* $OpenBSD: pfctl.c,v 1.387 2022/07/21 05:26:10 mbuhl Exp $ */
+/* $OpenBSD: pfctl.c,v 1.388 2022/07/27 12:28:27 mbuhl Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
int osize;
char *p;
- bzero(&pf, sizeof(pf));
RB_INIT(&pf_anchors);
memset(&pf_main_anchor, 0, sizeof(pf_main_anchor));
pf_init_ruleset(&pf_main_anchor.ruleset);
struct pfr_buffer t;
int i;
+ memset(&pf, 0, sizeof(pf));
pf.dev = dev;
pfctl_init_options(&pf);