This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git


The following commit(s) were added to refs/heads/main by this push:
     new c1aac982a Fix buffer position updating
c1aac982a is described below

commit c1aac982a482d142bb3eba8da450c7ca249c00af
Author: remm <[email protected]>
AuthorDate: Tue Jun 9 22:06:14 2026 +0200

    Fix buffer position updating
    
    I suppose it's written in one go so all is well !
    Found using OpenCode.
---
 native/src/sslutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/native/src/sslutils.c b/native/src/sslutils.c
index 8ef7d2c00..edc9fa8b0 100644
--- a/native/src/sslutils.c
+++ b/native/src/sslutils.c
@@ -799,7 +799,7 @@ static int ocsp_send_req(apr_socket_t *sock, BIO *req)
         do {
             apr_size_t wlen = remain;
             rv = apr_socket_send(sock, wbuf, &wlen);
-            wbuf += remain;
+            wbuf += wlen;
             remain -= wlen;
         } while (rv == APR_SUCCESS && remain > 0);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to