diff options
author | Matt Caswell <matt@openssl.org> | 2017-11-22 18:18:39 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-12-04 14:31:48 +0100 |
commit | a2c2e000509131b629b5cde0ce121ea6436bc23e (patch) | |
tree | 4d803411d28a7edab0dfec6b46acefe2f222b3f0 /ssl/statem/statem_dtls.c | |
parent | Convert the state machine code to use SSLfatal() (diff) | |
download | openssl-a2c2e000509131b629b5cde0ce121ea6436bc23e.tar.xz openssl-a2c2e000509131b629b5cde0ce121ea6436bc23e.zip |
Convert remaining functions in statem_clnt.c to use SSLfatal()
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4778)
Diffstat (limited to 'ssl/statem/statem_dtls.c')
-rw-r--r-- | ssl/statem/statem_dtls.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ssl/statem/statem_dtls.c b/ssl/statem/statem_dtls.c index 7fb6cdb8e2..651e8c2ed8 100644 --- a/ssl/statem/statem_dtls.c +++ b/ssl/statem/statem_dtls.c @@ -903,8 +903,11 @@ WORK_STATE dtls_wait_for_dry(SSL *s) /* read app data until dry event */ ret = BIO_dgram_sctp_wait_for_dry(SSL_get_wbio(s)); - if (ret < 0) + if (ret < 0) { + SSLfatal(s, SSL_AD_INTERNAL_ERROR, SSL_F_DTLS_WAIT_FOR_DRY, + ERR_R_INTERNAL_ERROR); return WORK_ERROR; + } if (ret == 0) { s->s3->in_read_app_data = 2; |