[dovecot-cvs] dovecot/src/pop3-login client-authenticate.c, 1.40,
1.41
cras at dovecot.org
cras at dovecot.org
Wed Jan 12 14:14:54 EET 2005
Update of /var/lib/cvs/dovecot/src/pop3-login
In directory talvi:/tmp/cvs-serv24390/pop3-login
Modified Files:
client-authenticate.c
Log Message:
Don't allow multiple PASS commands after a USER command. Patch by Andrey
Panin.
Index: client-authenticate.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/pop3-login/client-authenticate.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- client-authenticate.c 7 Jan 2005 17:29:25 -0000 1.40
+++ client-authenticate.c 12 Jan 2005 12:14:52 -0000 1.41
@@ -280,6 +280,9 @@
str_append_c(plain_login, '\0');
str_append(plain_login, args);
+ i_free(client->last_user);
+ client->last_user = NULL;
+
base64 = buffer_create_dynamic(pool_datastack_create(),
MAX_BASE64_ENCODED_SIZE(plain_login->used));
base64_encode(plain_login->data, plain_login->used, base64);
More information about the dovecot-cvs
mailing list