[dovecot-cvs] dovecot/src/auth mech.c,1.42,1.43
cras at dovecot.org
cras at dovecot.org
Sat Oct 16 01:56:12 EEST 2004
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv14046
Modified Files:
mech.c
Log Message:
extra assert
Index: mech.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/mech.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- mech.c 13 Oct 2004 16:38:32 -0000 1.42
+++ mech.c 15 Oct 2004 22:56:10 -0000 1.43
@@ -118,6 +118,13 @@
if (!success) {
/* failure. don't announce it immediately to avoid
a) timing attacks, b) flooding */
+ if (auth_failures_buf->used > 0) {
+ const struct auth_request *const *requests;
+
+ requests = auth_failures_buf->data;
+ requests += auth_failures_buf->used/sizeof(*requests)-1;
+ i_assert(*requests != request);
+ }
buffer_append(auth_failures_buf, &request, sizeof(request));
return;
}
More information about the dovecot-cvs
mailing list