]> git.puffer.fish Git - matthieu/frr.git/commit
lib: guard against padding garbage in ZAPI read
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 22 Jan 2025 10:19:04 +0000 (11:19 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 11 Feb 2025 08:47:32 +0000 (09:47 +0100)
commit3c6cfe4c566939d7ccd3f09adc6142406c92e113
treea77e4165fc62f7fa54d22b67da3986e51df80b52
parent81034e73e6c4ee3e6a410db78cd0e2f2f676d6df
lib: guard against padding garbage in ZAPI read

When reading in a nexthop from ZAPI, only set the fields that actually
have meaning.  While it shouldn't happen to begin with, we can otherwise
carry padding garbage into the unused leftover union bytes.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 4a0e1419a69d07496c7adfb744beecd00e1efef2)
lib/zclient.c