Merge pull request #6400 from mjstapp/fix_sa_zebra_nb_state

zebra: fix SA warning in zebra_nb_state.c
This commit is contained in:
Renato Westphal 2020-05-14 23:52:14 -03:00 committed by GitHub
commit 809241f442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}