diff options
| author | tb <> | 2026-06-22 19:29:41 +0000 |
|---|---|---|
| committer | tb <> | 2026-06-22 19:29:41 +0000 |
| commit | f22bfb370eed5ae169fc2a92418836ea99435c1e (patch) | |
| tree | abea42de24031e896b9bd01dc0f74d7bc7a47840 /src/lib | |
| parent | 7d484afcc91aea3502596af49c22451f7f77c7ea (diff) | |
| download | openbsd-f22bfb370eed5ae169fc2a92418836ea99435c1e.tar.gz openbsd-f22bfb370eed5ae169fc2a92418836ea99435c1e.tar.bz2 openbsd-f22bfb370eed5ae169fc2a92418836ea99435c1e.zip | |
x509_vfy: make a NULL check explicit
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index f2f86b3447..b8e87e8597 100644 --- a/src/lib/libcrypto/x509/x509_vfy.c +++ b/src/lib/libcrypto/x509/x509_vfy.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_vfy.c,v 1.151 2026/06/22 19:13:53 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.c,v 1.152 2026/06/22 19:29:41 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1082,7 +1082,7 @@ get_crl_sk(X509_STORE_CTX *ctx, X509_CRL **pcrl, X509_CRL **pdcrl, | |||
| 1082 | } | 1082 | } |
| 1083 | } | 1083 | } |
| 1084 | 1084 | ||
| 1085 | if (best_crl) { | 1085 | if (best_crl != NULL) { |
| 1086 | X509_CRL_free(*pcrl); | 1086 | X509_CRL_free(*pcrl); |
| 1087 | *pcrl = best_crl; | 1087 | *pcrl = best_crl; |
| 1088 | *pissuer = best_crl_issuer; | 1088 | *pissuer = best_crl_issuer; |
