summaryrefslogtreecommitdiffstats
path: root/bfdd
diff options
context:
space:
mode:
Diffstat (limited to 'bfdd')
-rw-r--r--bfdd/bfdd_northbound.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfdd/bfdd_northbound.c b/bfdd/bfdd_northbound.c
index bbc39fc9c..4b21a2116 100644
--- a/bfdd/bfdd_northbound.c
+++ b/bfdd/bfdd_northbound.c
@@ -546,6 +546,9 @@ bfdd_bfd_sessions_single_hop_stats_remote_discriminator_get_elem(
{
const struct bfd_session *bs = list_entry;
+ if (bs->discrs.remote_discr == 0)
+ return NULL;
+
return yang_data_new_uint32(xpath, bs->discrs.remote_discr);
}