mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Fixed out-of-bounds access when releasing socket handles.
This commit is contained in:
parent
a146503d30
commit
d337cf5a96
@ -84,6 +84,7 @@ int main (void)
|
||||
}
|
||||
}
|
||||
// Release the socket handles
|
||||
while (count)
|
||||
close (handle [count--]);
|
||||
for (count = 0; count < 1000; count++) {
|
||||
close(handle[count]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user