tls: avoid possible async handler duplication 08/13608/5
authorPing Yu <ping.yu@intel.com>
Mon, 23 Jul 2018 14:33:49 +0000 (10:33 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 23 Jul 2018 22:18:19 +0000 (22:18 +0000)
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>
src/plugins/tlsopenssl/tls_openssl.c

index b675d79..73e5cc0 100644 (file)
@@ -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);
        }