dovecot-1.1: fd_debug_verify_leaks() didn't check the last_fd.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 30 15:52:43 EEST 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/298d58ab6e2c
changeset: 8355:298d58ab6e2c
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 30 08:52:12 2009 -0400
description:
fd_debug_verify_leaks() didn't check the last_fd.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/fd-close-on-exec.c | 2 +-
diffs (12 lines):
diff -r d38e81d625ba -r 298d58ab6e2c src/lib/fd-close-on-exec.c
--- a/src/lib/fd-close-on-exec.c Fri Aug 28 12:57:03 2009 -0400
+++ b/src/lib/fd-close-on-exec.c Wed Sep 30 08:52:12 2009 -0400
@@ -29,7 +29,7 @@ void fd_debug_verify_leaks(int first_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;
More information about the dovecot-cvs
mailing list