Merge pull request #16021 from louis-6wind/debug-isis-psid-asan

isisd: fix heap-after-free with prefix sid
This commit is contained in:
Donatas Abraitis 2024-05-23 23:07:07 +03:00 committed by GitHub
commit a8627f96b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -703,6 +703,7 @@ static void isis_spf_add_local(struct isis_spftree *spftree,
} else { /* vertex->d_N > cost */
/* f) */
isis_vertex_queue_delete(&spftree->tents, vertex);
hash_release(spftree->prefix_sids, vertex);
isis_vertex_del(vertex);
}
}
@ -808,6 +809,7 @@ static void process_N(struct isis_spftree *spftree, enum vertextype vtype,
/* 4) */
} else {
isis_vertex_queue_delete(&spftree->tents, vertex);
hash_release(spftree->prefix_sids, vertex);
isis_vertex_del(vertex);
}
}