diff options
author | tb <> | 2021-12-28 17:45:41 +0000 |
---|---|---|
committer | tb <> | 2021-12-28 17:45:41 +0000 |
commit | a94be55b092da73d117bfca2ed6d5531eae8f475 (patch) | |
tree | 899d86b76940504f124c0bef9fe1896118037bde /src/lib | |
parent | f54b97f758dcba6ae36a03a1de4b5721c7c0303d (diff) | |
download | openbsd-a94be55b092da73d117bfca2ed6d5531eae8f475.tar.gz openbsd-a94be55b092da73d117bfca2ed6d5531eae8f475.tar.bz2 openbsd-a94be55b092da73d117bfca2ed6d5531eae8f475.zip |
Another small readability tweak in X509v3_addr_inherits()
Declare IPAddressFamily before using it.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/x509/x509_addr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_addr.c b/src/lib/libcrypto/x509/x509_addr.c index e448c4ae69..0f1a9a118f 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.37 2021/12/28 17:25:46 tb Exp $ */ | 1 | /* $OpenBSD: x509_addr.c,v 1.38 2021/12/28 17:45:41 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"). |
@@ -1492,13 +1492,14 @@ const X509V3_EXT_METHOD v3_addr = { | |||
1492 | int | 1492 | int |
1493 | X509v3_addr_inherits(IPAddrBlocks *addr) | 1493 | X509v3_addr_inherits(IPAddrBlocks *addr) |
1494 | { | 1494 | { |
1495 | IPAddressFamily *f; | ||
1495 | int i; | 1496 | int i; |
1496 | 1497 | ||
1497 | if (addr == NULL) | 1498 | if (addr == NULL) |
1498 | return 0; | 1499 | return 0; |
1499 | 1500 | ||
1500 | for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { | 1501 | for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { |
1501 | IPAddressFamily *f = sk_IPAddressFamily_value(addr, i); | 1502 | f = sk_IPAddressFamily_value(addr, i); |
1502 | 1503 | ||
1503 | if (IPAddressFamily_inheritance(f) != NULL) | 1504 | if (IPAddressFamily_inheritance(f) != NULL) |
1504 | return 1; | 1505 | return 1; |