Pass a pointer to mbuf pointer further down into ip6_process_hopopts()
authorbluhm <bluhm@openbsd.org>
Wed, 29 Jun 2022 22:45:24 +0000 (22:45 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 29 Jun 2022 22:45:24 +0000 (22:45 +0000)
commit80467c39870d6dd5a679fab4a36d2a744bf98ed1
tree9afaebbedb7d6746b66e34e79b9a493cc797da0a
parent55bfdc9f32022d05ff6df6884d9feac0537b2c23
Pass a pointer to mbuf pointer further down into ip6_process_hopopts()
and ip6_unknown_opt().  Instead of having dangling pointer in caller,
use m_freemp() to set mbuf to NULL.
OK sashan@
sys/netinet6/dest6.c
sys/netinet6/ip6_input.c
sys/netinet6/ip6_output.c
sys/netinet6/ip6_var.h