]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
wrap struct rlimit in HAVE_GETRLIMIT too
authorDamien Miller <djm@mindrot.org>
Tue, 6 Apr 2021 22:50:38 +0000 (08:50 +1000)
committerDamien Miller <djm@mindrot.org>
Tue, 6 Apr 2021 22:50:38 +0000 (08:50 +1000)
sftp-server.c

index 1f9997bdebd55368f680d514197e9e584c3a922f..838f0488cde78c3584371ae01be8066ae89abc10 100644 (file)
@@ -1491,7 +1491,9 @@ process_extended_limits(u_int32_t id)
        struct sshbuf *msg;
        int r;
        uint64_t nfiles = 0;
+#ifdef HAVE_GETRLIMIT
        struct rlimit rlim;
+#endif
 
        debug("request %u: limits", id);