which caused imap-login processes existing after Dovecot was killed to
keep the port reserved so Dovecot couldn't be started again.
--HG--
branch : HEAD
env = getenv("SSL_LISTEN_FDS");
if (env != NULL) i += atoi(env);
- fd_debug_verify_leaks(i + 1, 1024);
+ fd_debug_verify_leaks(i, 1024);
}
#endif
/* clear all allocated memory before freeing it. this makes the login
i_fatal("Failed to dup2() fds");
/* don't close any of these */
- for (tmp_fd = 0; tmp_fd <= cur_fd; tmp_fd++)
+ for (tmp_fd = 0; tmp_fd < cur_fd; tmp_fd++)
fd_close_on_exec(tmp_fd, FALSE);
(void)close(fd[0]);