Commit d337cf5a authored by Jens Auer's avatar Jens Auer

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

parent a146503d
......@@ -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]);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment