summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_rpki.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_rpki.c b/bgpd/bgp_rpki.c
index 352e3b87e8..1267e35097 100644
--- a/bgpd/bgp_rpki.c
+++ b/bgpd/bgp_rpki.c
@@ -1234,7 +1234,8 @@ DEFPY (show_rpki_prefix,
const struct pfx_record *record = &matches[i];
if (record->max_len >= prefix->prefixlen
- && ((asn != 0 && asn == record->asn) || asn == 0)) {
+ && ((asn != 0 && (uint32_t)asn == record->asn)
+ || asn == 0)) {
print_record(&matches[i], vty);
}
}