]> git.puffer.fish Git - mirror/frr.git/commit
lib: Allow ZAPI_MESSAGE_OPAQUE_LENGTH length of data 9003/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 7 Jul 2021 20:00:12 +0000 (16:00 -0400)
committermergify-bot <noreply@mergify.io>
Thu, 8 Jul 2021 01:36:12 +0000 (01:36 +0000)
commita2979a566b12414be05d65ce21d71a18a95bb331
tree839028d8a5893b15d432286689f52438b0be0eb4
parent73b7eb5339ab8b33457664831178ca5b07136658
lib: Allow ZAPI_MESSAGE_OPAQUE_LENGTH length of data

We are sending up to ZAPI_MESSAGE_OPAQUE_LENGTH but checking
for one less.  We know the data will fit in it to that size.
Also we have asserts on the write to ensure we don't go over
it

Fixes: #8995
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 3b1849be3211bdc7c53bdeb0d982863dfe0284d0)
lib/zclient.c