diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_addr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_addr.c b/src/lib/libcrypto/x509/x509_addr.c index 244eea1f23..e66d408ffb 100644 --- a/src/lib/libcrypto/x509/x509_addr.c +++ b/src/lib/libcrypto/x509/x509_addr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_addr.c,v 1.32 2021/12/28 16:10:47 tb Exp $ */ | 1 | /* $OpenBSD: x509_addr.c,v 1.33 2021/12/28 16:21:59 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Contributed to the OpenSSL Project by the American Registry for | 3 | * Contributed to the OpenSSL Project by the American Registry for |
| 4 | * Internet Numbers ("ARIN"). | 4 | * Internet Numbers ("ARIN"). |
| @@ -774,6 +774,8 @@ make_IPAddressFamily(IPAddrBlocks *addr, const unsigned afi, | |||
| 774 | if (!CBB_init(&cbb, 0)) | 774 | if (!CBB_init(&cbb, 0)) |
| 775 | goto err; | 775 | goto err; |
| 776 | 776 | ||
| 777 | /* XXX - should afi <= 65535 and *safi < 255 be checked here? */ | ||
| 778 | |||
| 777 | if (!CBB_add_u16(&cbb, afi)) | 779 | if (!CBB_add_u16(&cbb, afi)) |
| 778 | goto err; | 780 | goto err; |
| 779 | if (safi != NULL) { | 781 | if (safi != NULL) { |
