tls: fix openssl engine write complete condition 33/14833/2
authorFlorin Coras <fcoras@cisco.com>
Sat, 15 Sep 2018 00:56:29 +0000 (17:56 -0700)
committerDamjan Marion <dmarion@me.com>
Sat, 15 Sep 2018 08:11:40 +0000 (08:11 +0000)
Change-Id: Ic1526f6916970ce2b0c4fc0d148d4396fa629b5f
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/plugins/tlsopenssl/tls_openssl.c

index e42bb45..744a07a 100644 (file)
@@ -333,7 +333,7 @@ openssl_ctx_write (tls_ctx_t * ctx, stream_session_t * app_session)
        }
     }
 
-  if (deq_now < deq_max)
+  if (wrote < deq_max)
     tls_add_vpp_q_evt (app_session->server_tx_fifo, FIFO_EVENT_APP_TX);
 
 check_tls_fifo: