diff options
author | steve <steve> | 2009-09-23 23:43:42 +0000 |
---|---|---|
committer | steve <steve> | 2009-09-23 23:43:42 +0000 |
commit | 4aebac836c42086b324be70d47449bdb1e5d81b4 (patch) | |
tree | 31b4f4a1558e1a58b2c9a7a0ea03fe44f919ccd5 /crypto/x509v3 | |
parent | 746c04119e28639c627dc9a7ae105c9cc7321f1c (diff) | |
download | openssl-4aebac836c42086b324be70d47449bdb1e5d81b4.tar.gz |
Audit libcrypto for unchecked return values: fix all cases enountered
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_skey.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_skey.c b/crypto/x509v3/v3_skey.c index 202c9e489..0a984fbaa 100644 --- a/crypto/x509v3/v3_skey.c +++ b/crypto/x509v3/v3_skey.c @@ -129,7 +129,8 @@ static ASN1_OCTET_STRING *s2i_skey_id(X509V3_EXT_METHOD *method, goto err; } - EVP_Digest(pk->data, pk->length, pkey_dig, &diglen, EVP_sha1(), NULL); + if (!EVP_Digest(pk->data, pk->length, pkey_dig, &diglen, EVP_sha1(), NULL)) + goto err; if(!M_ASN1_OCTET_STRING_set(oct, pkey_dig, diglen)) { X509V3err(X509V3_F_S2I_SKEY_ID,ERR_R_MALLOC_FAILURE); |