summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2021-12-28 17:25:46 +0000
committertb <>2021-12-28 17:25:46 +0000
commitf54b97f758dcba6ae36a03a1de4b5721c7c0303d (patch)
tree1faef6a422ae172dcdd1cb3665f496fdb354ba02 /src
parent9453f2c5e4df85cd0d569ef15c5471609f400e62 (diff)
downloadopenbsd-f54b97f758dcba6ae36a03a1de4b5721c7c0303d.tar.gz
openbsd-f54b97f758dcba6ae36a03a1de4b5721c7c0303d.tar.bz2
openbsd-f54b97f758dcba6ae36a03a1de4b5721c7c0303d.zip
Use an accessor in X509v3_addr_inherits()
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/x509/x509_addr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_addr.c b/src/lib/libcrypto/x509/x509_addr.c
index ff0524bb16..e448c4ae69 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.36 2021/12/28 16:40:13 tb Exp $ */ 1/* $OpenBSD: x509_addr.c,v 1.37 2021/12/28 17:25:46 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").
@@ -1500,7 +1500,7 @@ X509v3_addr_inherits(IPAddrBlocks *addr)
1500 for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { 1500 for (i = 0; i < sk_IPAddressFamily_num(addr); i++) {
1501 IPAddressFamily *f = sk_IPAddressFamily_value(addr, i); 1501 IPAddressFamily *f = sk_IPAddressFamily_value(addr, i);
1502 1502
1503 if (f->ipAddressChoice->type == IPAddressChoice_inherit) 1503 if (IPAddressFamily_inheritance(f) != NULL)
1504 return 1; 1504 return 1;
1505 } 1505 }
1506 1506