in make_IPAddressFamily()
-/* $OpenBSD: x509_addr.c,v 1.32 2021/12/28 16:10:47 tb Exp $ */
+/* $OpenBSD: x509_addr.c,v 1.33 2021/12/28 16:21:59 tb Exp $ */
/*
* Contributed to the OpenSSL Project by the American Registry for
* Internet Numbers ("ARIN").
if (!CBB_init(&cbb, 0))
goto err;
+ /* XXX - should afi <= 65535 and *safi < 255 be checked here? */
+
if (!CBB_add_u16(&cbb, afi))
goto err;
if (safi != NULL) {