Use a common 'goto bad' style and set mp to NULL after freeing it
authorbluhm <bluhm@openbsd.org>
Sun, 11 Jun 2017 19:59:57 +0000 (19:59 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 11 Jun 2017 19:59:57 +0000 (19:59 +0000)
commit458cfda4eb23b830a33ff6358504e5b6c2b4720d
tree6b39ec18000dff38310489feacc2ce2b4ce4f802
parent5adfc765d852c5e10af60b8194300cdab271a3c4
Use a common 'goto bad' style and set mp to NULL after freeing it
in ipip_input_gif().  This prevents a use-after-free if there is a
bug in the IP input functions.
OK mpi@
sys/netinet/ip_ipip.c