diff options
| author | inoguchi <> | 2022-01-22 00:31:23 +0000 |
|---|---|---|
| committer | inoguchi <> | 2022-01-22 00:31:23 +0000 |
| commit | 6584e96690c653cb2ad98e693163abcdef34e0d7 (patch) | |
| tree | 193c4663332ece3581aa23238092f0e0bac47e52 /src/lib/libcrypto/ct | |
| parent | dab8fc22f102ffb5f39bf7bc71c56a2a7dece64b (diff) | |
| download | openbsd-6584e96690c653cb2ad98e693163abcdef34e0d7.tar.gz openbsd-6584e96690c653cb2ad98e693163abcdef34e0d7.tar.bz2 openbsd-6584e96690c653cb2ad98e693163abcdef34e0d7.zip | |
X509_GET_PUBKEY(3) return value check in libcrypto
ok beck@ tb@
Diffstat (limited to 'src/lib/libcrypto/ct')
| -rw-r--r-- | src/lib/libcrypto/ct/ct_sct.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ct/ct_sct.c b/src/lib/libcrypto/ct/ct_sct.c index 9ba7c4b5cb..a05b0f92a2 100644 --- a/src/lib/libcrypto/ct/ct_sct.c +++ b/src/lib/libcrypto/ct/ct_sct.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ct_sct.c,v 1.7 2021/12/18 16:34:52 tb Exp $ */ | 1 | /* $OpenBSD: ct_sct.c,v 1.8 2022/01/22 00:29:59 inoguchi Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Rob Stradling (rob@comodo.com), Stephen Henson (steve@openssl.org) | 3 | * Written by Rob Stradling (rob@comodo.com), Stephen Henson (steve@openssl.org) |
| 4 | * and Adam Eijdenberg (adam.eijdenberg@gmail.com) for the OpenSSL project 2016. | 4 | * and Adam Eijdenberg (adam.eijdenberg@gmail.com) for the OpenSSL project 2016. |
| @@ -411,7 +411,8 @@ SCT_validate(SCT *sct, const CT_POLICY_EVAL_CTX *ctx) | |||
| 411 | goto end; | 411 | goto end; |
| 412 | } | 412 | } |
| 413 | 413 | ||
| 414 | issuer_pkey = X509_get0_pubkey(ctx->issuer); | 414 | if ((issuer_pkey = X509_get0_pubkey(ctx->issuer)) == NULL) |
| 415 | goto err; | ||
| 415 | 416 | ||
| 416 | if (X509_PUBKEY_set(&pub, issuer_pkey) != 1) | 417 | if (X509_PUBKEY_set(&pub, issuer_pkey) != 1) |
| 417 | goto err; | 418 | goto err; |
