]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix dereference of null pointer in bgp_nht
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 24 Mar 2025 19:59:18 +0000 (20:59 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 24 Mar 2025 19:59:18 +0000 (20:59 +0100)
commit56c9f1c56662a68a1735ea07aa85cb88ae7acf64
tree951c49125426990ed5ba8a904ddfd50deeebde76
parent121c2ff1b03d5654be652dda7b35b73ddc914108
bgpd: fix dereference of null pointer in bgp_nht

Assuming attr is null, a dereference can happen in the function
make_prefix(). Add the protection over attr before accessing the
variable.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_nht.c