Use xoff instead of *olen in the shift_right() call. xoff is the right
authorclaudio <claudio@openbsd.org>
Mon, 23 Oct 2023 13:07:44 +0000 (13:07 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 23 Oct 2023 13:07:44 +0000 (13:07 +0000)
commite0c1f4798a44fdb15cd95a1654e82d7569139c58
tree900a072d646b3f9c71645f51ff50d590152a7df4
parent6a233889798dc3ecb18acc52dce1e57862af2957
Use xoff instead of *olen in the shift_right() call. xoff is the right
value here since *olen is (conditionally) set a few lines later to the
same value as xoff.

Should fix the CodeQL warnings because *olen is dereferenced without
proper NULL check.

OK tb@
usr.sbin/bgpd/flowspec.c