[dovecot-cvs] dovecot/src/pop3-login client-authenticate.c, 1.56, 1.57
tss at dovecot.org
tss at dovecot.org
Fri Feb 16 13:42:07 UTC 2007
Update of /var/lib/cvs/dovecot/src/pop3-login
In directory talvi:/tmp/cvs-serv6491/pop3-login
Modified Files:
client-authenticate.c
Log Message:
If authentication fails and we've already destroyed the client, don't go
io_add()ing the client anywhere.
Index: client-authenticate.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/client-authenticate.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- client-authenticate.c 20 Dec 2006 04:52:29 -0000 1.56
+++ client-authenticate.c 16 Feb 2007 13:42:05 -0000 1.57
@@ -141,11 +141,13 @@
client_send_line(client, str_c(reply));
- /* get back to normal client input. */
- if (client->io != NULL)
- io_remove(&client->io);
- client->io = io_add(client->common.fd, IO_READ,
- client_input, client);
+ if (!client->destroyed) {
+ /* get back to normal client input. */
+ if (client->io != NULL)
+ io_remove(&client->io);
+ client->io = io_add(client->common.fd, IO_READ,
+ client_input, client);
+ }
return TRUE;
}
@@ -182,11 +184,13 @@
data : AUTH_FAILED_MSG, NULL);
client_send_line(client, msg);
- /* get back to normal client input. */
- if (client->io != NULL)
- io_remove(&client->io);
- client->io = io_add(client->common.fd, IO_READ,
- client_input, client);
+ if (!client->destroyed) {
+ /* get back to normal client input. */
+ if (client->io != NULL)
+ io_remove(&client->io);
+ client->io = io_add(client->common.fd, IO_READ,
+ client_input, client);
+ }
break;
case SASL_SERVER_REPLY_MASTER_FAILED:
client_destroy_internal_failure(client);
More information about the dovecot-cvs
mailing list