From 006e6f8add638fab16f7adc099d46d3bfb0efb9a Mon Sep 17 00:00:00 2001 From: Ping Yu Date: Mon, 23 Jul 2018 10:33:49 -0400 Subject: [PATCH] tls: avoid possible async handler duplication One handler is good enough when engine sends out a retry status Thus this patch will just go one branch Change-Id: Id81cb3fa67d2b322b0fe1b2f62cd866cf3491eb4 Signed-off-by: Ping Yu --- src/plugins/tlsopenssl/tls_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c index b675d795cd8..73e5cc0af35 100644 --- a/src/plugins/tlsopenssl/tls_openssl.c +++ b/src/plugins/tlsopenssl/tls_openssl.c @@ -220,7 +220,7 @@ openssl_ctx_handshake_rx (tls_ctx_t * ctx, stream_session_t * tls_session) { vpp_ssl_async_retry_func (ctx, myself); } - if (err == SSL_ERROR_WANT_ASYNC) + else if (err == SSL_ERROR_WANT_ASYNC) { vpp_ssl_async_process_event (ctx, myself); } -- 2.16.6