]> git.puffer.fish Git - mirror/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)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 11 Feb 2025 08:43:51 +0000 (08:43 +0000)
commit4285bd8a176a2be4d035a9a055afa378c74f1cd1
treec21fe5ab42752d41dcedc4a1b2b03a2c6dd011d5
parentabf1ef1324df929fe04d035ea77614b0c88f0020
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