summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Ping <ping.yu@intel.com>2020-02-20 01:40:53 +0800
committerYu Ping <ping.yu@intel.com>2020-02-20 01:40:53 +0800
commitac267dd41be0265b23f2c1666e819994518e577a (patch)
tree621ba12ec85d413a8744fff726b1d904d4e3e7b5 /src
parent96acc9b04a837c8517b33c5f37f679204b5d5f67 (diff)
tls: need to use thread id to fetch the event
Type: fix Change-Id: I429351f04a2865be4a289a3021277f9b2ced902b Signed-off-by: Yu Ping <ping.yu@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/tlsopenssl/tls_async.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/tlsopenssl/tls_async.c b/src/plugins/tlsopenssl/tls_async.c
index 86604667eb8..fdfcf3a6c52 100644
--- a/src/plugins/tlsopenssl/tls_async.c
+++ b/src/plugins/tlsopenssl/tls_async.c
@@ -251,8 +251,7 @@ tls_async_openssl_callback (SSL * s, void *cb_arg)
int *evt_run_head = &om->queue[thread_index].evt_run_head;
TLS_DBG (2, "Set event %d to run\n", event_index);
-
- event = openssl_evt_get (event_index);
+ event = openssl_evt_get_w_thread (event_index, thread_index);
/* Happend when a recursive case, especially in SW simulation */
if (PREDICT_FALSE (event->status == SSL_ASYNC_READY))