summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-04-05 15:52:40 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-04-06 10:35:37 +0300
commite1a05dd4101ffd0fdb64d0851f9726ca66dbe18c (patch)
tree6cdf24212137711d507122d93676f26d6e6e4cbe
parent9ca44fc8ef2a7193626e3bac1af698f877f5aa33 (diff)
bgpd: Return enum RPKI_NOT_BEING_USED instead of 0
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
-rw-r--r--bgpd/bgp_rpki.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c
index 45fcbc86b7..5d6cbc6346 100644
--- a/bgpd/bgp_rpki.c
+++ b/bgpd/bgp_rpki.c
@@ -729,7 +729,7 @@ static int rpki_validate_prefix(struct peer *peer, struct attr *attr,
enum pfxv_state result;
if (!is_synchronized())
- return 0;
+ return RPKI_NOT_BEING_USED;
// No aspath means route comes from iBGP
if (!attr->aspath || !attr->aspath->segments) {
@@ -769,7 +769,7 @@ static int rpki_validate_prefix(struct peer *peer, struct attr *attr,
break;
default:
- return 0;
+ return RPKI_NOT_BEING_USED;
}
// Do the actual validation
@@ -799,7 +799,7 @@ static int rpki_validate_prefix(struct peer *peer, struct attr *attr,
prefix, as_number);
break;
}
- return 0;
+ return RPKI_NOT_BEING_USED;
}
static int add_cache(struct cache *cache)