Skip to content

Commit

Permalink
Merge pull request FRRouting#14453 from pguibert6WIND/isis_startup_crash
Browse files Browse the repository at this point in the history
isisd: fix crash when configuring srv6 locator without isis instance
  • Loading branch information
donaldsharp authored Sep 21, 2023
2 parents cd3bd19 + f4ac971 commit 4d64bad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions isisd/isis_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,9 @@ static int isis_zebra_process_srv6_locator_add(ZAPI_CALLBACK_ARGS)
struct listnode *node;
struct isis_area *area;

if (!isis)
return -1;

/* Decode the SRv6 locator */
if (zapi_srv6_locator_decode(zclient->ibuf, &loc) < 0)
return -1;
Expand Down Expand Up @@ -1274,6 +1277,9 @@ static int isis_zebra_process_srv6_locator_delete(ZAPI_CALLBACK_ARGS)
struct isis_srv6_sid *sid;
struct srv6_adjacency *sra;

if (!isis)
return -1;

/* Decode the received zebra message */
if (zapi_srv6_locator_decode(zclient->ibuf, &loc) < 0)
return -1;
Expand Down

0 comments on commit 4d64bad

Please sign in to comment.