diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2024-05-24 09:47:34 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-24 09:47:34 -0400 | 
| commit | fa95dfda229e117d9c3941ae8e53ec900486008a (patch) | |
| tree | b52bef7625e4c92c7cc58c7be8fb7126fd602f27 | |
| parent | ab6b39ef745052ebe5106424af0065eaf93af507 (diff) | |
| parent | d7672a6496b96e43035b4746e4c39f7f89619a73 (diff) | |
Merge pull request #16077 from FRRouting/mergify/bp/stable/10.0/pr-16021
isisd: fix heap-after-free with prefix sid (backport #16021)
| -rw-r--r-- | isisd/isis_spf.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c index 7a4b45a0de..3b3e1fd973 100644 --- a/isisd/isis_spf.c +++ b/isisd/isis_spf.c @@ -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);  		}  	}  | 
