]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fd_debug_verify_leaks() didn't check the last_fd.
authorTimo Sirainen <tss@iki.fi>
Wed, 30 Sep 2009 12:52:12 +0000 (08:52 -0400)
committerTimo Sirainen <tss@iki.fi>
Wed, 30 Sep 2009 12:52:12 +0000 (08:52 -0400)
--HG--
branch : HEAD

src/lib/fd-close-on-exec.c

index 8fe63eca5c97c4ff01d617f18621537d1e871495..6abf73733ab8fc6462095b0f65e570c64a9d667e 100644 (file)
@@ -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;