diff options
author | Hiroki Shirokura <slank.dev@gmail.com> | 2021-02-24 12:28:59 +0100 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2021-06-02 16:24:48 +0200 |
commit | 1d5f59a2353c9537193527ca0ffaf58a2e56d30e (patch) | |
tree | 0ea959c21b157321e64b669560cdaccb5c98906c /zebra/zebra_srv6.c | |
parent | *: fix code format accourding to checkpatch (diff) | |
download | frr-1d5f59a2353c9537193527ca0ffaf58a2e56d30e.tar.xz frr-1d5f59a2353c9537193527ca0ffaf58a2e56d30e.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_srv6.c b/zebra/zebra_srv6.c index 1e12117ac..5664a2968 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); |