dovecot-2.0: fd_debug_verify_leaks() didn't check the last_fd.

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 30 15:52:36 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/4169c35b6285
changeset: 9947:4169c35b6285
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 12089b6343bf -r 4169c35b6285 src/lib/fd-close-on-exec.c
--- a/src/lib/fd-close-on-exec.c	Tue Sep 29 13:21:16 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