]> git.proxmox.com Git - mirror_frr.git/commit
isisd: fix use after free
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 14 Dec 2021 13:28:08 +0000 (16:28 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 14 Dec 2021 13:28:08 +0000 (16:28 +0300)
commit7209d2a4cca79fc823b65cc5854f06debb2ac448
treebf16c4a6eed90ab50f97a61e57f3bfb6e52c3165
parenta64829d3c55b9c83e275d78698eab0899ebfcaae
isisd: fix use after free

Pointers to the adjacency must be cleared only when the adjacency is
deleted. Otherwise, when the ISIS router is deleted later, the adjacency
is not deleted and a crash happens because of UAF.

Fixes #10209.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
isisd/isis_adjacency.c