[dovecot-cvs] dovecot/src/auth passdb-checkpassword.c,1.20,1.21
cras at dovecot.org
cras at dovecot.org
Thu Aug 3 18:27:55 EEST 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv595
Modified Files:
passdb-checkpassword.c
Log Message:
Call io_remove() before closing the fd.
Index: passdb-checkpassword.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-checkpassword.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- passdb-checkpassword.c 20 Jun 2006 13:59:05 -0000 1.20
+++ passdb-checkpassword.c 3 Aug 2006 15:27:53 -0000 1.21
@@ -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");
More information about the dovecot-cvs
mailing list