Pullup the mbuf before accessing the version field in the IP header.
authorbluhm <bluhm@openbsd.org>
Fri, 8 Dec 2017 22:10:34 +0000 (22:10 +0000)
committerbluhm <bluhm@openbsd.org>
Fri, 8 Dec 2017 22:10:34 +0000 (22:10 +0000)
commit58bcd087d0dbfda07e8a78bbe5ffede96993f12f
tree7d1e5b1fdd4ff70df18b70ca08902a302c5002de
parent85464cee49a39cdc050fb5c3822e8773fb184a91
Pullup the mbuf before accessing the version field in the IP header.
Fix the pullup length of the shim header in mpls_do_error().
issue reported by Maxime Villard; OK deraadt@ claudio@
sys/netmpls/mpls_input.c