(krb5_change_password): check for fd's being too large to select on

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9198 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-11-15 23:14:07 +00:00
parent 03594ac148
commit dadda4470a

View File

@@ -299,6 +299,12 @@ krb5_change_password (krb5_context context,
}
}
if (sock >= FD_SETSIZE) {
ret = ERANGE;
close (sock);
goto out;
}
FD_ZERO(&fdset);
FD_SET(sock, &fdset);
tv.tv_usec = 0;