summaryrefslogtreecommitdiffstats
path: root/ssl/statem/statem_dtls.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-11-22 18:18:39 +0100
committerMatt Caswell <matt@openssl.org>2017-12-04 14:31:48 +0100
commita2c2e000509131b629b5cde0ce121ea6436bc23e (patch)
tree4d803411d28a7edab0dfec6b46acefe2f222b3f0 /ssl/statem/statem_dtls.c
parentConvert the state machine code to use SSLfatal() (diff)
downloadopenssl-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.c5
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;