From 58d46a76e5e71f79b1b130506fa50bd5a06becce Mon Sep 17 00:00:00 2001 From: Christian Giese Date: Fri, 3 Mar 2023 14:30:03 +0000 Subject: [PATCH] fix isis_lsp_gc_job --- code/bngblaster/src/isis/isis_lsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/bngblaster/src/isis/isis_lsp.c b/code/bngblaster/src/isis/isis_lsp.c index c18a7c36..afdfb089 100644 --- a/code/bngblaster/src/isis/isis_lsp.c +++ b/code/bngblaster/src/isis/isis_lsp.c @@ -162,7 +162,7 @@ isis_lsp_gc_job(timer_s *timer) while(next) { lsp = *hb_itor_datum(itor); next = hb_itor_next(itor); - if(lsp->expired && lsp->refcount == 0) { + if(lsp && lsp->expired && lsp->refcount == 0) { removed = hb_tree_remove(instance->level[i].lsdb, &lsp->id); if(removed.removed) { free(lsp);