[dovecot-cvs] dovecot/src/auth passdb-checkpassword.c, 1.18.2.2, 1.18.2.3
cras at dovecot.org
cras at dovecot.org
Thu Aug 3 18:27:54 EEST 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv30505
Modified Files:
Tag: branch_1_0
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.18.2.2
retrieving revision 1.18.2.3
diff -u -d -r1.18.2.2 -r1.18.2.3
--- passdb-checkpassword.c 20 Jun 2006 13:59:03 -0000 1.18.2.2
+++ passdb-checkpassword.c 3 Aug 2006 15:27:52 -0000 1.18.2.3
@@ -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