mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-01 23:29:38 +00:00
zebra: Subtract header length in the right spot
The header length needs to be subtracted from the handling side of the zapi in zebra. This is because we refigure the header data structure. The receive side doesn't care about the total header length so no need to subtract there. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
615e608d76
commit
c0079fc9ce
@ -2927,6 +2927,7 @@ static int zserv_process_messages(struct thread *thread)
|
||||
if (!hdrvalid)
|
||||
continue;
|
||||
|
||||
hdr.length -= ZEBRA_HEADER_SIZE;
|
||||
/* lookup vrf */
|
||||
zvrf = zebra_vrf_lookup_by_id(hdr.vrf_id);
|
||||
if (!zvrf && IS_ZEBRA_DEBUG_PACKET && IS_ZEBRA_DEBUG_RECV) {
|
||||
@ -3047,7 +3048,6 @@ static int zserv_read(struct thread *thread)
|
||||
#if defined(HANDLE_ZAPI_FUZZING)
|
||||
zserv_write_incoming(client->ibuf_work, command);
|
||||
#endif
|
||||
hdr.length -= ZEBRA_HEADER_SIZE;
|
||||
|
||||
/* Debug packet information. */
|
||||
if (IS_ZEBRA_DEBUG_EVENT)
|
||||
|
Loading…
Reference in New Issue
Block a user