summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcanacar <canacar@openbsd.org>2011-02-12 20:58:28 +0000
committercanacar <canacar@openbsd.org>2011-02-12 20:58:28 +0000
commitd5295a39415df2b15a962b34f36fc4456dd62bb1 (patch)
treee1290b8d6cf55dcc9e986dabd7fbbaed0377c1e0
parentClear the filter memory area before using it. Leaving it uninitialized may (diff)
downloadwireguard-openbsd-d5295a39415df2b15a962b34f36fc4456dd62bb1.tar.xz
wireguard-openbsd-d5295a39415df2b15a962b34f36fc4456dd62bb1.zip
Unbreak previous commit by adding the proper header file.
-rw-r--r--sys/net/bpf_filter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/bpf_filter.c b/sys/net/bpf_filter.c
index 3e56866861c..ac8e7705a0b 100644
--- a/sys/net/bpf_filter.c
+++ b/sys/net/bpf_filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf_filter.c,v 1.22 2011/02/12 20:45:19 canacar Exp $ */
+/* $OpenBSD: bpf_filter.c,v 1.23 2011/02/12 20:58:28 canacar Exp $ */
/* $NetBSD: bpf_filter.c,v 1.12 1996/02/13 22:00:00 christos Exp $ */
/*
@@ -38,6 +38,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/types.h>
#include <sys/time.h>
#ifndef _KERNEL