]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
log an error if BIO_write(3) fails
authorGiovanni Bechis <gbechis@apache.org>
Tue, 6 Jun 2023 22:41:27 +0000 (22:41 +0000)
committerGiovanni Bechis <gbechis@apache.org>
Tue, 6 Jun 2023 22:41:27 +0000 (22:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910269 13f79535-47bb-0310-9956-ffa450edef68

docs/log-message-tags/next-number
modules/ssl/ssl_util_ocsp.c

index 22138604e1bfd63461b54165ef0bbc9c22ca87b6..e73dda0faec21e9be0778d54fafcadaf9bc32532 100644 (file)
@@ -1 +1 @@
-10455
+10456
index fbbec07acc63e8f53d113ed9e9a5a46cc444627c..855f02fc216fb89890c48ab06e2dd47ff47e9659 100644 (file)
@@ -287,7 +287,10 @@ static OCSP_RESPONSE *read_response(apr_socket_t *sd, BIO *bio, conn_rec *c,
                       "OCSP response: got %" APR_SIZE_T_FMT
                       " bytes, %" APR_SIZE_T_FMT " total", len, count);
 
-        BIO_write(bio, data, (int)len);
+        if(BIO_write(bio, data, (int)len) < 0) {
+          ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c, APLOGNO(10455)
+                      "failed to write OCSP response to BIO buffer");
+        }
         apr_bucket_delete(e);
     }