From: Ping Yu Date: Mon, 23 Jul 2018 14:33:49 +0000 (-0400) Subject: tls: avoid possible async handler duplication X-Git-Tag: v18.10-rc1~547 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=006e6f8add638fab16f7adc099d46d3bfb0efb9a 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 --- 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); }