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

@@ -852,8 +852,10 @@ main(int argc, char **argv)
struct timeval to = {30, 0};
uint32_t vers;
#ifndef NO_LIMIT_FD_SETSIZE
if (signal_fd >= FD_SETSIZE || listen_fd >= FD_SETSIZE)
krb5_errx (context, 1, "fd too large");
#endif
FD_ZERO(&readset);
FD_SET(signal_fd, &readset);