summaryrefslogtreecommitdiff
path: root/poll
diff options
context:
space:
mode:
authorBrian Pane <brianp@apache.org>2002-09-01 04:15:11 +0000
committerBrian Pane <brianp@apache.org>2002-09-01 04:15:11 +0000
commit364f18c023202d9ad95788eb0435569a0c225f0b (patch)
tree9968d18f2aef37f10d494ce76b1f513b3c4487df /poll
parent2ca0003dd684316b39f773aa8a7e9723971373b9 (diff)
downloadapr-364f18c023202d9ad95788eb0435569a0c225f0b.tar.gz
Bugfix for apr_pollset_remove()
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63843 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poll')
-rw-r--r--poll/unix/poll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/poll/unix/poll.c b/poll/unix/poll.c
index 82b049902..657625d97 100644
--- a/poll/unix/poll.c
+++ b/poll/unix/poll.c
@@ -463,6 +463,7 @@ APR_DECLARE(apr_status_t) apr_pollset_remove(apr_pollset_t *pollset,
else {
pollset->pollset[dst] = pollset->pollset[i];
pollset->query_set[dst] = pollset->query_set[i];
+ dst++;
}
}
return APR_SUCCESS;
@@ -493,6 +494,7 @@ APR_DECLARE(apr_status_t) apr_pollset_remove(apr_pollset_t *pollset,
}
else {
pollset->query_set[dst] = pollset->query_set[i];
+ dst++;
}
}
FD_CLR(fd, &(pollset->readset));