mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-17 08:17:42 -04:00
windows memory corruption bug fix from I-M Weasel via Nick Mathewson.
svn:r189
This commit is contained in:
parent
8d1317d71c
commit
0c48c70680
@ -135,6 +135,8 @@ do_fd_set(struct win32op *op, SOCKET s, int read)
|
|||||||
if (set->fd_count == op->fd_setsz) {
|
if (set->fd_count == op->fd_setsz) {
|
||||||
if (realloc_fd_sets(op, op->fd_setsz*2))
|
if (realloc_fd_sets(op, op->fd_setsz*2))
|
||||||
return (-1);
|
return (-1);
|
||||||
|
/* set pointer will have changed and needs reiniting! */
|
||||||
|
set = read ? op->readset_in : op->writeset_in;
|
||||||
}
|
}
|
||||||
set->fd_array[set->fd_count] = s;
|
set->fd_array[set->fd_count] = s;
|
||||||
return (set->fd_count++);
|
return (set->fd_count++);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user