From b71f646a8cee4469eec8e64122f32dc1bf414905 Mon Sep 17 00:00:00 2001 From: gregames Date: Tue, 22 Jan 2013 19:20:45 +0000 Subject: initialize flags fields to avoid JRAsyncAuthErr git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1437109 13f79535-47bb-0310-9956-ffa450edef68 --- poll/unix/z_asio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/poll/unix/z_asio.c b/poll/unix/z_asio.c index cdce230e5..3f4bec579 100644 --- a/poll/unix/z_asio.c +++ b/poll/unix/z_asio.c @@ -505,7 +505,10 @@ static apr_status_t asio_pollset_remove(apr_pollset_t *pollset, if (elem->state == ASIO_INIT) { /* asyncio call to cancel */ cancel_a.aio_cmd = AIO_CANCEL; - cancel_a.aio_buf = &elem->a; + cancel_a.aio_buf = &elem->a; /* point to original aiocb */ + + cancel_a.aio_cflags = 0; + cancel_a.aio_cflags2 = 0; /* we want the original aiocb to show up on the pollset message queue * to eliminate race conditions -- cgit v1.2.1