]> 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:50:25 +0000 (09:50 +0100)
commit722fc6bd7119128dca5c3c66bfa854a5901c5844
tree151d944d9f026cca9deb476f56db41a54b93e86e
parent3926831921d1be603a6724f8090fc8f489947778
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