]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: guard against junk in nexthop->rmap_src
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 22 Jan 2025 10:17:21 +0000 (11:17 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 29 Jan 2025 15:48:37 +0000 (16:48 +0100)
commitb666ee510eb480da50476b1bbc84bdf8365df95c
tree5bfd811dc88cb3a506656e48b12dda44fa4168f8
parentc88589f5e9351654c04322eb395003297656989d
zebra: guard against junk in nexthop->rmap_src

rmap_src wasn't initialized, so for IPv4 the unused 12 bytes would
contain whatever junk is on the stack on function entry.  Also move
the IPv4 parse before the IPv6 parse so if it's successful we can be
sure the other bytes haven't been touched.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra/zebra_routemap.c