(wait_for_connection): check for fd's being too large to select on
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9190 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -172,6 +172,8 @@ wait_for_connection(krb5_context context,
|
||||
FD_ZERO(&orig_read_set);
|
||||
|
||||
for(i = 0; i < num_socks; i++) {
|
||||
if (socks[i] >= FD_SETSIZE)
|
||||
errx (1, "fd too large");
|
||||
FD_SET(socks[i], &orig_read_set);
|
||||
max_fd = max(max_fd, socks[i]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user