aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/tlsopenssl
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-03-09 08:36:25 -0800
committerDave Barach <openvpp@barachs.net>2021-03-11 19:30:48 +0000
commit1e6a0f64653c8142fa7032aba127ab4894bafc3c (patch)
tree946397461d5fa1fe32ae1e736a64db15f628b939 /src/plugins/tlsopenssl
parent143610014ab91f7998014f4322c36c8b07f50d5f (diff)
session tls: deq notifications for custom tx
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I6ed2104e9d79c367ca36460047586f9b632c3315
Diffstat (limited to 'src/plugins/tlsopenssl')
-rw-r--r--src/plugins/tlsopenssl/tls_openssl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c
index 00cd4621897..c906d0e294a 100644
--- a/src/plugins/tlsopenssl/tls_openssl.c
+++ b/src/plugins/tlsopenssl/tls_openssl.c
@@ -159,6 +159,9 @@ openssl_read_from_ssl_into_fifo (svm_fifo_t * f, SSL * ssl)
u32 max_enq;
max_enq = svm_fifo_max_enqueue_prod (f);
+ if (!max_enq)
+ return 0;
+
n_fs = svm_fifo_provision_chunks (f, fs, n_segs, max_enq);
if (n_fs < 0)
return 0;