At successful return ip6_check_rh0hdr() keeps *offp unmodified.
authorbluhm <bluhm@openbsd.org>
Fri, 12 Aug 2022 12:08:54 +0000 (12:08 +0000)
committerbluhm <bluhm@openbsd.org>
Fri, 12 Aug 2022 12:08:54 +0000 (12:08 +0000)
commitf42e2e0a6c82573a95292904e86a430ee909df9c
tree8afe701eba42a99cf4b5751af56ea44f7674e87e
parent0db915da90421b42e626c62754290eb8ea66580e
At successful return ip6_check_rh0hdr() keeps *offp unmodified.
The IPv6 routing header type 0 check should modify *offp only in
case of an error, so that the generated icmp6 packet has the correct
pointer.
OK sashan@
sys/netinet6/ip6_input.c