The ip6_hbhchcheck() function never reads the nxtp parameter, it
authorbluhm <bluhm@openbsd.org>
Tue, 28 Jun 2022 08:24:29 +0000 (08:24 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 28 Jun 2022 08:24:29 +0000 (08:24 +0000)
commit5b1db52d350b4b82b0c3cbfcfac6ec119cd1f90b
tree56936305f18cc27eec8236fe02b61c41f36312cc
parenta9b1a60dca9549f37ceb538557a61fe3faf28ade
The ip6_hbhchcheck() function never reads the nxtp parameter, it
only sets its value.  It is more obvious to return the next protocol
or IPPROTO_DONE to signal error.  All IP protocol functions do that.
OK sashan@ florian@
sys/netinet6/ip6_input.c