aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/iomgr
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-06-30 09:31:26 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-06-30 09:31:26 -0700
commit974472464ce6c4eb554263c00bc81eeab36d4078 (patch)
tree85a35fa81779fcddda32a5e79546725990abe0d4 /src/core/iomgr
parent52f842fb73c3a1e99101026b19cb4be98dfa73bd (diff)
Fix memory corruption bug
Diffstat (limited to 'src/core/iomgr')
-rw-r--r--src/core/iomgr/pollset_set_posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/pollset_set_posix.c b/src/core/iomgr/pollset_set_posix.c
index 005e938398..5ff7df1dcd 100644
--- a/src/core/iomgr/pollset_set_posix.c
+++ b/src/core/iomgr/pollset_set_posix.c
@@ -114,7 +114,7 @@ void grpc_pollset_set_del_fd(grpc_pollset_set *pollset_set, grpc_fd *fd) {
if (pollset_set->fds[i] == fd) {
pollset_set->fd_count--;
GPR_SWAP(grpc_fd *, pollset_set->fds[i],
- pollset_set->fds[pollset_set->pollset_count]);
+ pollset_set->fds[pollset_set->fd_count]);
GRPC_FD_UNREF(fd, "pollset_set");
break;
}