[dovecot-cvs] dovecot/src/imap-login client-authenticate.c, 1.27,
1.28
cras at dovecot.org
cras at dovecot.org
Fri Oct 8 20:51:50 EEST 2004
- Previous message: [dovecot-cvs] dovecot/src/imap cmd-sort.c, 1.16,
1.17 commands-util.c, 1.36, 1.37 commands.c, 1.13,
1.14 imap-fetch.c, 1.28, 1.29 imap-sort.c, 1.16, 1.17
- Next message: [dovecot-cvs] dovecot/src/auth auth-master-connection.c, 1.10,
1.11 main.c, 1.29, 1.30 mech-cram-md5.c, 1.11,
1.12 mech-digest-md5.c, 1.24, 1.25 mech-rpa.c, 1.4, 1.5 mech.c,
1.37, 1.38 passdb-checkpassword.c, 1.2,
1.3 password-scheme-rpa.c, 1.1, 1.2 password-scheme.c, 1.15, 1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv10130/imap-login
Modified Files:
client-authenticate.c
Log Message:
Buffer API change: we no longer support limited sized buffers where
writes past limit wouldn't kill the process. They weren't used hardly
anywhere, they could have hidden bugs and the code for handling them was too
complex.
This also changed base64 and hex-binary APIs.
Index: client-authenticate.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/client-authenticate.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- client-authenticate.c 5 Oct 2004 16:00:18 -0000 1.27
+++ client-authenticate.c 8 Oct 2004 17:51:47 -0000 1.28
@@ -98,8 +98,7 @@
t_push();
- buf = buffer_create_dynamic(pool_datastack_create(),
- size*2, (size_t)-1);
+ buf = buffer_create_dynamic(pool_datastack_create(), size*2);
buffer_append(buf, "+ ", 2);
base64_encode(data, size, buf);
buffer_append(buf, "\r\n", 2);
@@ -284,7 +283,7 @@
linelen = strlen(line);
buf = buffer_create_static_hard(pool_datastack_create(), linelen);
- if (base64_decode(line, linelen, NULL, buf) <= 0) {
+ if (base64_decode(line, linelen, NULL, buf) < 0) {
/* failed */
client_auth_abort(client, "Invalid base64 data");
} else if (client->common.auth_request == NULL) {
- Previous message: [dovecot-cvs] dovecot/src/imap cmd-sort.c, 1.16,
1.17 commands-util.c, 1.36, 1.37 commands.c, 1.13,
1.14 imap-fetch.c, 1.28, 1.29 imap-sort.c, 1.16, 1.17
- Next message: [dovecot-cvs] dovecot/src/auth auth-master-connection.c, 1.10,
1.11 main.c, 1.29, 1.30 mech-cram-md5.c, 1.11,
1.12 mech-digest-md5.c, 1.24, 1.25 mech-rpa.c, 1.4, 1.5 mech.c,
1.37, 1.38 passdb-checkpassword.c, 1.2,
1.3 password-scheme-rpa.c, 1.1, 1.2 password-scheme.c, 1.15, 1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list