From b85de19145a01d3acdf326c3cfa4e94b585bb59f Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 18 Jan 2022 20:51:08 -0800 Subject: svm: update number of segments in svm_fifo_segments In addition to returning the number of bytes also update the number of segments to reflect the number used. Type: improvement Signed-off-by: Florin Coras Change-Id: Ia87dc2aa62cea38b18dfa83df94dc2abe29d5121 --- src/plugins/tlsopenssl/tls_openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/tlsopenssl') diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c index ac8529926bd..964230f178f 100644 --- a/src/plugins/tlsopenssl/tls_openssl.c +++ b/src/plugins/tlsopenssl/tls_openssl.c @@ -194,10 +194,10 @@ static int openssl_write_from_fifo_into_ssl (svm_fifo_t *f, SSL *ssl, u32 max_len) { int wrote = 0, rv, i = 0, len; - const int n_segs = 2; + u32 n_segs = 2; svm_fifo_seg_t fs[n_segs]; - len = svm_fifo_segments (f, 0, fs, n_segs, max_len); + len = svm_fifo_segments (f, 0, fs, &n_segs, max_len); if (len <= 0) return 0; -- cgit 1.2.3-korg