From: mouring Date: Sun, 7 Jul 2002 22:25:29 +0000 (+0000) Subject: - (bal) Minor KNF on ssh-keyscan.c X-Git-Tag: V_3_5_P1~150 X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/commitdiff_plain/41545cb6950c8c3a78e7e078835e5904d9314329 - (bal) Minor KNF on ssh-keyscan.c This is really from Theo's patch. I missed it by looking at the wrong function call. --- diff --git a/ChangeLog b/ChangeLog index ce106ef6..869bf75c 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. diff --git a/ssh-keyscan.c b/ssh-keyscan.c index b913614d..ae7cd86f 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)