aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/tlsopenssl
diff options
context:
space:
mode:
authorPing Yu <ping.yu@intel.com>2018-07-23 10:33:49 -0400
committerFlorin Coras <florin.coras@gmail.com>2018-07-23 22:18:19 +0000
commit006e6f8add638fab16f7adc099d46d3bfb0efb9a (patch)
treec76f4271db6fd7f6956b13c3332e76fe357cab36 /src/plugins/tlsopenssl
parent8409955e4b27f9797d9e7bb1ef7064d04ff03f71 (diff)
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 <ping.yu@intel.com>
Diffstat (limited to 'src/plugins/tlsopenssl')
-rw-r--r--src/plugins/tlsopenssl/tls_openssl.c2
1 files changed, 1 insertions, 1 deletions
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);
}