diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2022-11-10 17:18:01 +0100 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2022-11-17 11:26:22 +0000 | 
| commit | 7a07501ff1127f1726c9aadb17d8f3cd506521f8 (patch) | |
| tree | b69b8a09056eaebba2384071fb1820a4265747b7 /isisd | |
| parent | 23f40f230d1fe293eb519aafb0825444ea44f0e0 (diff) | |
isisd: fix area NULL pointer in isis_route_update
Fix the case area is NULL.
Fixes: acc0029779 ("isisd: fix potential access to NULL pointer in isis_route_update")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
(cherry picked from commit 41c2bf853f072008330a929480bf235ac840212a)
Diffstat (limited to 'isisd')
| -rw-r--r-- | isisd/isis_route.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/isisd/isis_route.c b/isisd/isis_route.c index 9f8f639e5d..34d7e7eeac 100644 --- a/isisd/isis_route.c +++ b/isisd/isis_route.c @@ -463,6 +463,9 @@ static void isis_route_update(struct isis_area *area, struct prefix *prefix,  			      struct prefix_ipv6 *src_p,  			      struct isis_route_info *route_info)  { +	if (area == NULL) +		return; +  	if (CHECK_FLAG(route_info->flag, ISIS_ROUTE_FLAG_ACTIVE)) {  		if (CHECK_FLAG(route_info->flag, ISIS_ROUTE_FLAG_ZEBRA_SYNCED))  			return;  | 
