[dovecot-cvs] dovecot/src/auth auth-client-connection.c, 1.8,
1.9 mech.c, 1.29, 1.30
cras at dovecot.org
cras at dovecot.org
Thu Aug 19 02:42:33 EEST 2004
- Previous message: [dovecot-cvs] dovecot/src/imap client.c, 1.38, 1.39 client.h, 1.20,
1.21 cmd-list.c, 1.39, 1.40 commands-util.c, 1.34, 1.35
- Next message: [dovecot-cvs] dovecot/src/imap client.c, 1.39, 1.40 client.h, 1.21,
1.22 cmd-append.c, 1.40, 1.41 cmd-check.c, 1.3, 1.4 cmd-copy.c,
1.22, 1.23 cmd-expunge.c, 1.7, 1.8 cmd-fetch.c, 1.21,
1.22 cmd-idle.c, 1.12, 1.13 cmd-noop.c, 1.3, 1.4 cmd-search.c,
1.20, 1.21 cmd-select.c, 1.29, 1.30 cmd-sort.c, 1.15,
1.16 cmd-status.c, 1.19, 1.20 cmd-store.c, 1.25,
1.26 cmd-thread.c, 1.7, 1.8 commands-util.c, 1.35,
1.36 commands-util.h, 1.16, 1.17 commands.h, 1.14,
1.15 imap-sync.c, 1.2, 1.3 imap-sync.h, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv10327
Modified Files:
auth-client-connection.c mech.c
Log Message:
fixes
Index: auth-client-connection.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/auth-client-connection.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- auth-client-connection.c 15 Aug 2004 03:40:30 -0000 1.8
+++ auth-client-connection.c 18 Aug 2004 23:42:31 -0000 1.9
@@ -31,7 +31,7 @@
iov[0].iov_base = reply;
iov[0].iov_len = sizeof(*reply);
iov[1].iov_base = data;
- iov[2].iov_len = reply->data_size;
+ iov[1].iov_len = reply->data_size;
ret = o_stream_sendv(conn->output, iov, 2);
if (ret == (ssize_t)(iov[0].iov_len + iov[1].iov_len)) {
@@ -215,7 +215,7 @@
iov[0].iov_base = &handshake_reply;
iov[0].iov_len = sizeof(handshake_reply);
iov[1].iov_base = master->handshake_reply + 1;
- iov[2].iov_len = handshake_reply.data_size;
+ iov[1].iov_len = handshake_reply.data_size;
if (o_stream_sendv(conn->output, iov, 2) < 0) {
auth_client_connection_destroy(conn);
Index: mech.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/mech.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- mech.c 28 Jul 2004 15:39:29 -0000 1.29
+++ mech.c 18 Aug 2004 23:42:31 -0000 1.30
@@ -226,6 +226,7 @@
{
struct auth_client_request_reply reply;
void *reply_data;
+ int free_request;
if (!success) {
/* failure. don't announce it immediately to avoid
@@ -239,10 +240,13 @@
reply.id = auth_request->id;
reply.result = AUTH_CLIENT_RESULT_SUCCESS;
+ /* get this before callback because it can destroy connection */
+ free_request = AUTH_MASTER_IS_DUMMY(auth_request->conn->master);
+
reply_data = mech_auth_success(&reply, auth_request, data, data_size);
auth_request->callback(&reply, reply_data, auth_request->conn);
- if (AUTH_MASTER_IS_DUMMY(auth_request->conn->master)) {
+ if (free_request) {
/* we don't have master process, the request is no longer
needed */
mech_request_free(auth_request, auth_request->id);
- Previous message: [dovecot-cvs] dovecot/src/imap client.c, 1.38, 1.39 client.h, 1.20,
1.21 cmd-list.c, 1.39, 1.40 commands-util.c, 1.34, 1.35
- Next message: [dovecot-cvs] dovecot/src/imap client.c, 1.39, 1.40 client.h, 1.21,
1.22 cmd-append.c, 1.40, 1.41 cmd-check.c, 1.3, 1.4 cmd-copy.c,
1.22, 1.23 cmd-expunge.c, 1.7, 1.8 cmd-fetch.c, 1.21,
1.22 cmd-idle.c, 1.12, 1.13 cmd-noop.c, 1.3, 1.4 cmd-search.c,
1.20, 1.21 cmd-select.c, 1.29, 1.30 cmd-sort.c, 1.15,
1.16 cmd-status.c, 1.19, 1.20 cmd-store.c, 1.25,
1.26 cmd-thread.c, 1.7, 1.8 commands-util.c, 1.35,
1.36 commands-util.h, 1.16, 1.17 commands.h, 1.14,
1.15 imap-sync.c, 1.2, 1.3 imap-sync.h, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list