diff options
author | Craig Tiller <ctiller@google.com> | 2015-06-30 09:31:26 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-06-30 09:31:26 -0700 |
commit | 974472464ce6c4eb554263c00bc81eeab36d4078 (patch) | |
tree | 85a35fa81779fcddda32a5e79546725990abe0d4 /src/core/iomgr | |
parent | 52f842fb73c3a1e99101026b19cb4be98dfa73bd (diff) |
Fix memory corruption bug
Diffstat (limited to 'src/core/iomgr')
-rw-r--r-- | src/core/iomgr/pollset_set_posix.c | 2 |
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; } |