summaryrefslogtreecommitdiff
path: root/lib/vrf.c
diff options
context:
space:
mode:
authorMark Stapp <mjs.ietf@gmail.com>2023-01-19 11:28:58 -0500
committerGitHub <noreply@github.com>2023-01-19 11:28:58 -0500
commit11f4fa6fe0ec4c09bf56373321742130e0b204e6 (patch)
tree72ebb6d4eafa8d9d978c48f5fffd7b89f3caed7e /lib/vrf.c
parentcd16c74b7761c4565878eaf325b0d10189b89106 (diff)
parentff9232c83bad982838e68fc0f9b7fbe8f77e0e02 (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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index 5878c1734f..2ac7ef7a97 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -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;
}