diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2023-09-21 12:33:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 12:33:16 +0200 |
commit | 4d64badc5b7a875d15a68585e7da8ecaf567d629 (patch) | |
tree | 2d457ea22dd9c18df8cc6ffd7f049c735edffeb2 | |
parent | Merge pull request #14454 from opensourcerouting/coverity-20230920 (diff) | |
parent | isisd: fix crash when configuring srv6 locator without isis instance (diff) | |
download | frr-4d64badc5b7a875d15a68585e7da8ecaf567d629.tar.xz frr-4d64badc5b7a875d15a68585e7da8ecaf567d629.zip |
Merge pull request #14453 from pguibert6WIND/isis_startup_crash
isisd: fix crash when configuring srv6 locator without isis instance
-rw-r--r-- | isisd/isis_zebra.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index 788618ef8..318934b49 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -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; @@ -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; |