From: tb Date: Mon, 7 Oct 2024 14:45:33 +0000 (+0000) Subject: Add comment accidentally omitted on commit X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=eef0ad36fb141e90d64e1dffa8614806e2b6d197;p=openbsd Add comment accidentally omitted on commit --- diff --git a/usr.sbin/rpki-client/x509.c b/usr.sbin/rpki-client/x509.c index 89d8e13006e..0ef858ddfa2 100644 --- a/usr.sbin/rpki-client/x509.c +++ b/usr.sbin/rpki-client/x509.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.c,v 1.102 2024/10/07 12:18:31 tb Exp $ */ +/* $OpenBSD: x509.c,v 1.103 2024/10/07 14:45:33 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * Copyright (c) 2021 Claudio Jeker @@ -1033,6 +1033,7 @@ x509_seqnum_to_bn(const char *fn, const char *descr, const ASN1_INTEGER *i) goto out; } + /* Reject values larger than or equal to 2^159. */ if (BN_num_bytes(bn) > 20 || BN_is_bit_set(bn, 159)) { warnx("%s: %s should fit in 20 octets", fn, descr); goto out;