diff options
Diffstat (limited to 'ssh-keyscan.c')
-rw-r--r-- | ssh-keyscan.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |