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

cliffjansen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit f8f5386455c8bfec3cc40fe8271acdd50b4f2f4f
Author: Clifford Jansen <cliffjan...@apache.org>
AuthorDate: Thu Sep 15 10:14:55 2022 -0700

    PROTON-2612: TLS OpenSSL library: initialize read raw buffer size to use 
whole capacity
---
 c/src/tls/openssl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/c/src/tls/openssl.c b/c/src/tls/openssl.c
index d36232604..c05e09b99 100644
--- a/c/src/tls/openssl.c
+++ b/c/src/tls/openssl.c
@@ -1646,6 +1646,7 @@ size_t pn_tls_give_encrypt_output_buffers(pn_tls_t* tls, 
pn_raw_buffer_t const*
     // Get next free
     assert(tls->eresult_buffers[current-1].type == buff_empty);
     raw_buffer_to_pbuffer(bufs + i, &tls->eresult_buffers[current-1], 
buff_eresult_blank);
+    tls->eresult_buffers[current-1].size = 0;
     previous = current;
     current = tls->eresult_buffers[current-1].next;
   }
@@ -1673,6 +1674,7 @@ size_t pn_tls_give_decrypt_output_buffers(pn_tls_t* tls, 
pn_raw_buffer_t const*
     // Get next free
     assert(tls->dresult_buffers[current-1].type == buff_empty);
     raw_buffer_to_pbuffer(bufs + i, &tls->dresult_buffers[current-1], 
buff_dresult_blank);
+    tls->dresult_buffers[current-1].size = 0;
     previous = current;
     current = tls->dresult_buffers[current-1].next;
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to