summaryrefslogtreecommitdiff
path: root/zebra/zebra_nb_state.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-05-14 23:52:14 -0300
committerGitHub <noreply@github.com>2020-05-14 23:52:14 -0300
commit809241f44214f49e34b99a00eb2f588ee019d2cb (patch)
tree589398ce4c2916e95db872736eb347d86bd1b1d7 /zebra/zebra_nb_state.c
parent2465055e3147d736f4ca80f98ef0eeea6d2dd5dd (diff)
parent3109cba3a600046db15126ecfca337d4368a9d50 (diff)
Merge pull request #6400 from mjstapp/fix_sa_zebra_nb_state
zebra: fix SA warning in zebra_nb_state.c
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 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;
}