]> 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:53 +0000 (08:43 +0000)
commit536488044c6e499ccace5d2e1beb39b54ab83247
treef83ab59c09943c4c5afa0e4430a1f27b7e2be7ea
parent7f5eb20b45fe4c97a7410527df62440638a1105a
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