Consistency updates for lib/kadm5 and don't check fd_set size if it's not necessary

This commit is contained in:
Asanka Herath
2009-09-14 13:47:38 -04:00
committed by Love Hornquist Astrand
parent a79bf3464d
commit c6b8fad5dc
3 changed files with 6 additions and 2 deletions

View File

@@ -657,8 +657,10 @@ main(int argc, char **argv)
fd_set readset;
struct timeval to;
#ifndef NO_LIMIT_FD_SETSIZE
if (master_fd >= FD_SETSIZE)
krb5_errx (context, 1, "fd too large");
#endif
FD_ZERO(&readset);
FD_SET(master_fd, &readset);