From: tb Date: Thu, 6 Jan 2022 14:08:15 +0000 (+0000) Subject: minor tweaks, no code change X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2aab0f11d72d64a8f5c8b761d1b487145bcb9294;p=openbsd minor tweaks, no code change Adjust a comment to reality, zap a stray empty line and fix whitespace before comment after #endif --- diff --git a/lib/libcrypto/x509/x509_addr.c b/lib/libcrypto/x509/x509_addr.c index 8794180535f..cc77f92509d 100644 --- a/lib/libcrypto/x509/x509_addr.c +++ b/lib/libcrypto/x509/x509_addr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_addr.c,v 1.75 2022/01/05 18:01:27 tb Exp $ */ +/* $OpenBSD: x509_addr.c,v 1.76 2022/01/06 14:08:15 tb Exp $ */ /* * Contributed to the OpenSSL Project by the American Registry for * Internet Numbers ("ARIN"). @@ -1690,7 +1690,7 @@ addr_contains(IPAddressOrRanges *parent, IPAddressOrRanges *child, int length) } /* - * Test whether a is a subset of b. + * Test whether |child| is a subset of |parent|. */ int X509v3_addr_subset(IPAddrBlocks *child, IPAddrBlocks *parent) @@ -1710,7 +1710,6 @@ X509v3_addr_subset(IPAddrBlocks *child, IPAddrBlocks *parent) for (i = 0; i < sk_IPAddressFamily_num(child); i++) { child_af = sk_IPAddressFamily_value(child, i); - parent_af = IPAddressFamily_find_in_parent(parent, child_af); if (parent_af == NULL) return 0; @@ -1952,4 +1951,4 @@ X509v3_addr_validate_resource_set(STACK_OF(X509) *chain, IPAddrBlocks *ext, return addr_validate_path_internal(NULL, chain, ext); } -#endif /* OPENSSL_NO_RFC3779 */ +#endif /* OPENSSL_NO_RFC3779 */