diff options
author | Matt Caswell <matt@openssl.org> | 2017-11-23 17:25:05 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-12-04 14:31:48 +0100 |
commit | 4752c5deb20cae92a7146c4b89ad41045a041970 (patch) | |
tree | c83fce04d1abd189ec50f687afb8f8d1a9ad6a4c /ssl/s3_enc.c | |
parent | Provide an SSLfatal() macro (diff) | |
download | openssl-4752c5deb20cae92a7146c4b89ad41045a041970.tar.xz openssl-4752c5deb20cae92a7146c4b89ad41045a041970.zip |
Replace some usage of SSLerr with SSLfatal()
This is an initial step towards using SSLfatal() everywhere. Initially in
this commit and in subsequent commits we focus on the state machine code.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4778)
Diffstat (limited to 'ssl/s3_enc.c')
-rw-r--r-- | ssl/s3_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssl/s3_enc.c b/ssl/s3_enc.c index 02e0598dc2..f080f8a64e 100644 --- a/ssl/s3_enc.c +++ b/ssl/s3_enc.c @@ -298,7 +298,8 @@ int ssl3_init_finished_mac(SSL *s) BIO *buf = BIO_new(BIO_s_mem()); if (buf == NULL) { - SSLerr(SSL_F_SSL3_INIT_FINISHED_MAC, ERR_R_MALLOC_FAILURE); + SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_SSL3_INIT_FINISHED_MAC, + ERR_R_MALLOC_FAILURE); return 0; } ssl3_free_digest_list(s); |