Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4531:9eefd9c4619a HEAD
Call io_remove() before closing the fd.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 03 Aug 2006 18:27:53 +0300 |
parents | f598896bb40a |
children | d83f2a6e1f45 |
files | src/auth/passdb-checkpassword.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/passdb-checkpassword.c Thu Aug 03 01:39:50 2006 +0300 +++ b/src/auth/passdb-checkpassword.c Thu Aug 03 18:27:53 2006 +0300 @@ -42,16 +42,16 @@ static void checkpassword_request_close(struct chkpw_auth_request *request) { + if (request->io_in != NULL) + io_remove(&request->io_in); + if (request->io_out != NULL) + io_remove(&request->io_out); + if (request->fd_in != -1) { if (close(request->fd_in) < 0) i_error("checkpassword: close() failed: %m"); request->fd_in = -1; } - if (request->io_in != NULL) - io_remove(&request->io_in); - - if (request->io_out != NULL) - io_remove(&request->io_out); if (request->fd_out != -1) { if (close(request->fd_out) < 0) i_error("checkpassword: close() failed: %m");