summaryrefslogtreecommitdiff
path: root/zebra/zebra_srv6.c
diff options
context:
space:
mode:
authorHiroki Shirokura <slank.dev@gmail.com>2021-02-24 11:28:59 +0000
committerMark Stapp <mjs@voltanet.io>2021-06-02 10:24:48 -0400
commit1d5f59a2353c9537193527ca0ffaf58a2e56d30e (patch)
tree0ea959c21b157321e64b669560cdaccb5c98906c /zebra/zebra_srv6.c
parentf29aed7480294e9551389cf652390a6e807ae05b (diff)
zebra: fix Dereference of null pointer
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'zebra/zebra_srv6.c')
-rw-r--r--zebra/zebra_srv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_srv6.c b/zebra/zebra_srv6.c
index 1e12117ac4..5664a29682 100644
--- a/zebra/zebra_srv6.c
+++ b/zebra/zebra_srv6.c
@@ -220,7 +220,7 @@ static int zebra_srv6_manager_get_locator_chunk(struct srv6_locator **loc,
(*loc)->name, zebra_route_string(client->proto),
client->instance);
- if ((*loc)->status_up)
+ if (*loc && (*loc)->status_up)
ret = zsend_srv6_manager_get_locator_chunk_response(client,
vrf_id,
*loc);