From: Timo Sirainen Date: Wed, 30 Sep 2009 12:52:12 +0000 (-0400) Subject: fd_debug_verify_leaks() didn't check the last_fd. X-Git-Tag: 2.0.alpha1~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8377cca339ac2d8b1d878781822a62218181a55;p=thirdparty%2Fdovecot%2Fcore.git fd_debug_verify_leaks() didn't check the last_fd. --HG-- branch : HEAD --- diff --git a/src/lib/fd-close-on-exec.c b/src/lib/fd-close-on-exec.c index 8fe63eca5c..6abf73733a 100644 --- a/src/lib/fd-close-on-exec.c +++ b/src/lib/fd-close-on-exec.c @@ -29,7 +29,7 @@ void fd_debug_verify_leaks(int first_fd, int last_fd) struct stat st; int old_errno; - for (; first_fd < last_fd; first_fd++) { + for (; first_fd <= last_fd; first_fd++) { if (fcntl(first_fd, F_GETFD, 0) == -1 && errno == EBADF) continue;