]> git.puffer.fish Git - matthieu/frr.git/commit
isisd: check vertex type before checking its data
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 20 Nov 2020 22:26:45 +0000 (19:26 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 23 Nov 2020 18:22:36 +0000 (15:22 -0300)
commit6f6adeee98290a3283dfdc5aa66c2a956c03af30
tree961f51b94cf54b719f2f6d835282593283a43b0c
parentdb0a0f2e7b9c4bb7e52e5a12b47b7c2850097cb8
isisd: check vertex type before checking its data

vertex->N is an union whose "id" and "ip" fields are only valid
depending on the vertex type (IS adjacency or IP reachability
information). As such, add a vertex type check before consulting
vertex->N.id in order to prevent unexpected behavior from happening.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
isisd/isis_spf.c