]> git.puffer.fish Git - mirror/frr.git/commit
pimd: When receiving a packet be more careful with length in pim_pim_packet 14302/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 30 Aug 2023 12:54:33 +0000 (08:54 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 30 Aug 2023 12:54:33 +0000 (08:54 -0400)
commit3163c64d2893b5411d299952ff16dfc05e2c7a86
tree94dd89b1176aa60f9371c5a24b0d971a4024da76
parent6ed47401a7df973fad8e007005ce85bf8d491232
pimd: When receiving a packet be more careful with length in pim_pim_packet

a) If the length passed is the header length then it is possible that
assignment of data will happen without data actually existing.

b) Just move the assignment to after we ensure that the pim packet
received is the minimum possible length that can be received.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
pimd/pim_pim.c