summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_nb_state.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-05-14 15:41:59 +0200
committerMark Stapp <mjs@voltanet.io>2020-05-14 15:41:59 +0200
commit3109cba3a600046db15126ecfca337d4368a9d50 (patch)
treeec2536ecf531923501b860aa1acf309f1a962785 /zebra/zebra_nb_state.c
parentMerge pull request #6227 from pguibert6WIND/show_nexthop_group_permit_netns (diff)
downloadfrr-3109cba3a600046db15126ecfca337d4368a9d50.tar.xz
frr-3109cba3a600046db15126ecfca337d4368a9d50.zip
zebra: fix SA warning in zebra_nb_state.c
Fix an SA warning in zebra_nb_state.c. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_nb_state.c')
-rw-r--r--zebra/zebra_nb_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_nb_state.c b/zebra/zebra_nb_state.c
index 415c0d3f6..44a2d172f 100644
--- a/zebra/zebra_nb_state.c
+++ b/zebra/zebra_nb_state.c
@@ -490,7 +490,7 @@ const void *lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_get_next(
struct route_entry *re = (struct route_entry *)args->parent_list_entry;
struct nhg_hash_entry *nhe = (struct nhg_hash_entry *)args->list_entry;
- if (args->list_entry == NULL) {
+ if (nhe == NULL) {
nhe = re->nhe;
return nhe;
}