diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-12-28 17:25:47 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-12-28 17:25:47 +0000 |
commit | dc27ca34090c6cf8ef00ce9e77af3f541ca04793 (patch) | |
tree | c06385751704e3b7301621dac97f1e0437f9fced | |
parent | 31a04f4c895a95f437d91265d0448ebebd9198c7 (diff) |
Use an accessor in X509v3_addr_inherits()
-rw-r--r-- | lib/libcrypto/x509/x509_addr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/x509/x509_addr.c b/lib/libcrypto/x509/x509_addr.c index ff0524bb16a..e448c4ae695 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.36 2021/12/28 16:40:13 tb Exp $ */ +/* $OpenBSD: x509_addr.c,v 1.37 2021/12/28 17:25:46 tb Exp $ */ /* * Contributed to the OpenSSL Project by the American Registry for * Internet Numbers ("ARIN"). @@ -1500,7 +1500,7 @@ X509v3_addr_inherits(IPAddrBlocks *addr) for (i = 0; i < sk_IPAddressFamily_num(addr); i++) { IPAddressFamily *f = sk_IPAddressFamily_value(addr, i); - if (f->ipAddressChoice->type == IPAddressChoice_inherit) + if (IPAddressFamily_inheritance(f) != NULL) return 1; } |