ERR_new();
ERR_set_debug(file, line, 0);
ossl_statem_fatal(s, al, SSL_R_RECORD_LAYER_FAILURE, NULL);
+ } else {
+ /*
+ * Some failure but there is no alert code. We don't log an
+ * error for this. The record layer should have logged an error
+ * already or, if not, its due to some sys call error which will be
+ * reported via SSL_ERROR_SYSCALL and errno. We do still set the
+ * state machine into an error state via ossl_statem_send_fatal().
+ * This doesn't actually send an alert because we are using
+ * SSL_AD_NO_ALERT.
+ */
+ ossl_statem_send_fatal(s, SSL_AD_NO_ALERT);
}
- /*
- * else some failure but there is no alert code. We don't log an
- * error for this. The record layer should have logged an error
- * already or, if not, its due to some sys call error which will be
- * reported via SSL_ERROR_SYSCALL and errno.
- */
}
/*
* The record layer distinguishes the cases of EOF, non-fatal