Assign the ip and ip6 pointers in ipsp_process_packet() only if a
authorbluhm <bluhm@openbsd.org>
Thu, 21 Aug 2008 23:05:30 +0000 (23:05 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 21 Aug 2008 23:05:30 +0000 (23:05 +0000)
commitbf3ff4f4d19067613f9b6d6a194ecbabe617696d
tree314ee2642e248ec0ad6350dbf333322fff8f169d
parentc6e3ebe5f94e1741d59c943c7bccf03db1829661
Assign the ip and ip6 pointers in ipsp_process_packet() only if a
header of the matching address family is available.  Especially do
not read ip->ip_off from an IPv6 packet header.
ok markus
sys/netinet/ipsec_output.c