Skip to content

Commit

Permalink
isisd: fix area NULL pointer in isis_route_update
Browse files Browse the repository at this point in the history
Fix the case area is NULL.

Fixes: acc0029 ("isisd: fix potential access to NULL pointer in isis_route_update")
Signed-off-by: Louis Scalbert <[email protected]>
(cherry picked from commit 41c2bf8)
  • Loading branch information
louis-6wind authored and mergify[bot] committed Nov 17, 2022
1 parent 23f40f2 commit 7a07501
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions isisd/isis_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7a07501

Please sign in to comment.