aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/tlsopenssl/dtls_bio.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-05-21 18:26:30 -0700
committerDave Barach <openvpp@barachs.net>2021-05-22 16:45:00 +0000
commitaf073546e1bf130089a58d9cdb8ca1da3492c933 (patch)
treefcb291fc6d97f38c80d11875a9a9b8b89014827d /src/plugins/tlsopenssl/dtls_bio.c
parent0f27339eaa6410ef6d993686825e73393b2a3ecb (diff)
tls: prealloc chunks for dtls dgram enq
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ib25598f72f6539c07de1acee1e6049ecd28f35cc
Diffstat (limited to 'src/plugins/tlsopenssl/dtls_bio.c')
-rw-r--r--src/plugins/tlsopenssl/dtls_bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/tlsopenssl/dtls_bio.c b/src/plugins/tlsopenssl/dtls_bio.c
index 7cd2abd42e2..39e9435b7ff 100644
--- a/src/plugins/tlsopenssl/dtls_bio.c
+++ b/src/plugins/tlsopenssl/dtls_bio.c
@@ -110,7 +110,7 @@ bio_dtls_write (BIO *b, const char *in, int inl)
rv = app_send_dgram_raw (s->tx_fifo, &at, mq, (u8 *) in, inl,
SESSION_IO_EVT_TX, 1 /* do_evt */, 0 /* noblock */);
- if (rv < 0)
+ if (rv <= 0)
{
BIO_set_retry_read (b);
errno = EAGAIN;