diff options
| author | Mark Stapp <mjs.ietf@gmail.com> | 2023-01-19 11:28:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-19 11:28:58 -0500 |
| commit | 11f4fa6fe0ec4c09bf56373321742130e0b204e6 (patch) | |
| tree | 72ebb6d4eafa8d9d978c48f5fffd7b89f3caed7e /lib/vrf.c | |
| parent | cd16c74b7761c4565878eaf325b0d10189b89106 (diff) | |
| parent | ff9232c83bad982838e68fc0f9b7fbe8f77e0e02 (diff) | |
Merge pull request #12665 from opensourcerouting/cs-misc
lib,zebra: fix null dereference and remove dead code
Diffstat (limited to 'lib/vrf.c')
| -rw-r--r-- | lib/vrf.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1000,8 +1000,7 @@ lib_vrf_state_active_get_elem(struct nb_cb_get_elem_args *args) struct vrf *vrfp = (struct vrf *)args->list_entry; if (vrfp->status == VRF_ACTIVE) - return yang_data_new_bool( - args->xpath, vrfp->status == VRF_ACTIVE ? true : false); + return yang_data_new_bool(args->xpath, true); return NULL; } |
