From 3109cba3a600046db15126ecfca337d4368a9d50 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Thu, 14 May 2020 09:41:59 -0400 Subject: [PATCH] zebra: fix SA warning in zebra_nb_state.c Fix an SA warning in zebra_nb_state.c. Signed-off-by: Mark Stapp --- zebra/zebra_nb_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_nb_state.c b/zebra/zebra_nb_state.c index 415c0d3f6d..44a2d172f1 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; } -- 2.39.5