summaryrefslogtreecommitdiff
path: root/lib/memory.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-11-20 19:26:45 -0300
committerRenato Westphal <renato@opensourcerouting.org>2020-11-23 15:22:36 -0300
commit6f6adeee98290a3283dfdc5aa66c2a956c03af30 (patch)
tree961f51b94cf54b719f2f6d835282593283a43b0c /lib/memory.c
parentdb0a0f2e7b9c4bb7e52e5a12b47b7c2850097cb8 (diff)
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>
Diffstat (limited to 'lib/memory.c')
0 files changed, 0 insertions, 0 deletions