Check return value of ssl3_output_cert_chain
(cherry picked from commit 66f96fe2d5
)
Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:

committed by
Matt Caswell

parent
5ee441162e
commit
c8667a2e46
@@ -3450,7 +3450,11 @@ int ssl3_send_server_certificate(SSL *s)
|
||||
}
|
||||
}
|
||||
|
||||
ssl3_output_cert_chain(s,cpk);
|
||||
if (!ssl3_output_cert_chain(s,cpk))
|
||||
{
|
||||
SSLerr(SSL_F_SSL3_SEND_SERVER_CERTIFICATE,ERR_R_INTERNAL_ERROR);
|
||||
return(0);
|
||||
}
|
||||
s->state=SSL3_ST_SW_CERT_B;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user