dovecot-1.2: fd_debug_verify_leaks() didn't check the last_fd.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 30 15:52:21 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/401e023c8c29
changeset: 9396:401e023c8c29
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 4c9f068e5ea1 -r 401e023c8c29 src/lib/fd-close-on-exec.c
--- a/src/lib/fd-close-on-exec.c Tue Sep 29 10:35:58 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