Submitted by: Julia Lawall <julia@diku.dk>

The functions ENGINE_ctrl(), OPENSSL_isservice(), EVP_PKEY_sign(),
CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error fix
so the return code is checked correctly.
This commit is contained in:
Dr. Stephen Henson
2009-09-13 11:29:29 +00:00
parent 94480b57db
commit a25f33d28a
8 changed files with 21 additions and 11 deletions

View File

@@ -2707,7 +2707,7 @@ int ssl3_send_client_verify(SSL *s)
s->method->ssl3_enc->cert_verify_mac(s,
NID_id_GostR3411_94,
data);
if (!EVP_PKEY_sign(pctx,signbuf,&sigsize,data,32)) {
if (EVP_PKEY_sign(pctx, signbuf, &sigsize, data, 32) <= 0) {
SSLerr(SSL_F_SSL3_SEND_CLIENT_VERIFY,
ERR_R_INTERNAL_ERROR);
goto err;