Convert remaining functions in statem_clnt.c to use SSLfatal()
[openssl.git] / ssl / statem / statem_dtls.c
index 7fb6cdb8e2ab761d256dc609d796e5a559537c85..651e8c2ed80ed573fd6b2c8c60e78233b730a658 100644 (file)
@@ -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;