]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - ssl/ssl_lib.c
Resolve a TODO in ssl3_dispatch_alert
[thirdparty/openssl.git] / ssl / ssl_lib.c
index e15bf29ffb77b12837d47a8639c06fcee582648d..f8b8378ee9b3af6c7ea757db8bc12149274e5f17 100644 (file)
@@ -2418,7 +2418,7 @@ ossl_ssize_t SSL_sendfile(SSL *s, int fd, off_t offset, size_t size, int flags)
     }
 
     /* If we have an alert to send, lets send it */
-    if (sc->s3.alert_dispatch) {
+    if (sc->s3.alert_dispatch > 0) {
         ret = (ossl_ssize_t)s->method->ssl_dispatch_alert(s);
         if (ret <= 0) {
             /* SSLfatal() already called if appropriate */