Fixed out-of-bounds access when releasing socket handles.

This commit is contained in:
Jens Auer 2015-05-31 00:57:53 +02:00
parent a146503d30
commit d337cf5a96

View File

@ -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]);
}
}