From 5c98db50bfa18767693421aa0beaed8ac733f19f Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Sun, 7 Jul 2002 22:25:29 +0000 Subject: [PATCH] - (bal) Minor KNF on ssh-keyscan.c This is really from Theo's patch. I missed it by looking at the wrong function call. --- ChangeLog | 3 ++- ssh-keyscan.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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)