summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authorGreg Ames <gregames@apache.org>2013-01-22 19:20:45 +0000
committerGreg Ames <gregames@apache.org>2013-01-22 19:20:45 +0000
commit1e6323bea8d6f6b9bd66ed3637eba5d74def0760 (patch)
tree162ffbe93ee44a2ebafdaa900f1bc4eef5ec9127 /poll
parentee69ee1b39b1951effa2f90b54e0b470e232a29d (diff)
downloadapr-1e6323bea8d6f6b9bd66ed3637eba5d74def0760.tar.gz
initialize flags fields to avoid JRAsyncAuthErr
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1437109 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r--poll/unix/z_asio.c5
1 files changed, 4 insertions, 1 deletions
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