ip: fix length calculation in ip6-receive 37/35137/4
authorKlement Sekera <ksekera@cisco.com>
Fri, 28 Jan 2022 13:16:46 +0000 (13:16 +0000)
committerOle Tr�an <otroan@employees.org>
Mon, 31 Jan 2022 14:58:36 +0000 (14:58 +0000)
commitcf1e8c1eeab1dc07d69210f410a086d7ae4eae90
tree4b4b6dc7e44ea7f0475f8f6ab5b8dc6b727489bd
parent3a1a86f87fd7d9c84ad4b12124c50fc3927ec6cf
ip: fix length calculation in ip6-receive

Replace unconditional usage of
buffer->total_length_not_including_first_buffer with a logic checking
whether that length is set to a valid value.

Type: fix
Fixes: 17478e4eb81d384f171ca27c9110a051cd434f16
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I161d0957d62cc23826edd821aa5560bcfc5c1a33
src/vnet/ip/ip6_forward.c