diff options
author | 2011-07-01 21:00:40 +0000 | |
---|---|---|
committer | 2011-07-01 21:00:40 +0000 | |
commit | 20fca4fcc4bcc0cc3c8c4f14225f5d74122b2bda (patch) | |
tree | 219d7ba0579536a84fac9723a77ec8b0380cc32f | |
parent | Enable the knob to dynamically allocate (large) state structures. (diff) | |
download | wireguard-openbsd-20fca4fcc4bcc0cc3c8c4f14225f5d74122b2bda.tar.xz wireguard-openbsd-20fca4fcc4bcc0cc3c8c4f14225f5d74122b2bda.zip |
The pf_headers union may also contain a mld_hdr or nd_neighbor_solicit
struct. List those types explicitly to make sure that the union
contains enough memory. Before we were just lucky.
ok henning@
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 7f5cf17f64f..b6fa2989f73 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.751 2011/06/23 19:10:40 claudio Exp $ */ +/* $OpenBSD: pf.c,v 1.752 2011/07/01 21:00:40 bluhm Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -131,6 +131,8 @@ union pf_headers { struct icmp icmp; #ifdef INET6 struct icmp6_hdr icmp6; + struct mld_hdr mld; + struct nd_neighbor_solicit nd_ns; #endif /* INET6 */ }; |