From ff3018ab3d5c2838f7916c5fedf916f5ce119258 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 7 Aug 2017 22:56:06 -0700 Subject: Don't clear the AIO provider data in finish. The finish routine can race against an asynchronous cancellation, so we must not clear the data pointer, or we can wind up with a NULL pointer dereference. --- src/core/aio.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/core/aio.c') diff --git a/src/core/aio.c b/src/core/aio.c index 273ce22e..3c85b78d 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -187,7 +187,6 @@ nni_aio_finish_impl( aio->a_result = result; aio->a_count = count; aio->a_prov_cancel = NULL; - aio->a_prov_data = NULL; if (pipe) { aio->a_pipe = pipe; } -- cgit v1.2.3-70-g09d2