aboutsummaryrefslogtreecommitdiff
path: root/crypto/x509v3/v3_skey.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-09-23 23:43:49 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-09-23 23:43:49 +0000
commitb6dcdbfc94c482f6c15ba725754fc9e827e41851 (patch)
tree9fec84d4564530bc97b42d56e01a64abb96adac3 /crypto/x509v3/v3_skey.c
parentcd4f7cddc7994d23d48b86cf638541c6e2310c2d (diff)
downloadopenssl-b6dcdbfc94c482f6c15ba725754fc9e827e41851.zip
openssl-b6dcdbfc94c482f6c15ba725754fc9e827e41851.tar.gz
openssl-b6dcdbfc94c482f6c15ba725754fc9e827e41851.tar.bz2
Audit libcrypto for unchecked return values: fix all cases enountered
Diffstat (limited to 'crypto/x509v3/v3_skey.c')
-rw-r--r--crypto/x509v3/v3_skey.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_skey.c b/crypto/x509v3/v3_skey.c
index 202c9e4..0a984fb 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);