diff --git a/ChangeLog b/ChangeLog index 6ab66d1cb..69762fb0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25,6 +25,7 @@ - stevesk@cvs.openbsd.org 2002/07/06 17:47:58 [ssh-keyscan.c] unused variable + - (bal) Minor KNF on ssh-keyscan.c 20020705 - (tim) [configure.ac] AIX 4.2.1 has authenticate() in libs. @@ -1308,4 +1309,4 @@ - (stevesk) entropy.c: typo in debug message - (djm) ssh-keygen -i needs seeded RNG; report from markus@ -$Id: ChangeLog,v 1.2347 2002/07/07 22:19:13 mouring Exp $ +$Id: ChangeLog,v 1.2348 2002/07/07 22:25:29 mouring Exp $ diff --git a/ssh-keyscan.c b/ssh-keyscan.c index b913614db..ae7cd86fc 100644 --- a/ssh-keyscan.c +++ b/ssh-keyscan.c @@ -234,6 +234,7 @@ fdlim_set(int lim) #if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE) struct rlimit rlfd; #endif + if (lim <= 0) return (-1); #if defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE)