[dovecot-cvs]
dovecot/src/pop3-login client-authenticate.c,1.12,1.13
client.c,1.16,1.17
cras at procontrol.fi
cras at procontrol.fi
Sun Sep 21 20:21:40 EEST 2003
Update of /home/cvs/dovecot/src/pop3-login
In directory danu:/tmp/cvs-serv17131/pop3-login
Modified Files:
client-authenticate.c client.c
Log Message:
data_stack_pool split into two: unsafe_data_stack_pool which works like
before, and a new one which verifies that stack frame stays the same
whenever the pool is accessed.
Index: client-authenticate.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3-login/client-authenticate.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- client-authenticate.c 24 Aug 2003 07:55:23 -0000 1.12
+++ client-authenticate.c 21 Sep 2003 16:21:38 -0000 1.13
@@ -111,7 +111,8 @@
t_push();
- buf = buffer_create_dynamic(data_stack_pool, size*2, (size_t)-1);
+ buf = buffer_create_dynamic(pool_datastack_create(),
+ size*2, (size_t)-1);
buffer_append(buf, "+ ", 2);
base64_encode(data, size, buf);
buffer_append(buf, "\r\n", 2);
@@ -250,7 +251,7 @@
}
linelen = strlen(line);
- buf = buffer_create_static_hard(data_stack_pool, linelen);
+ buf = buffer_create_static_hard(pool_datastack_create(), linelen);
if (base64_decode((const unsigned char *) line, linelen,
NULL, buf) <= 0) {
Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/pop3-login/client.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- client.c 24 Aug 2003 07:55:23 -0000 1.16
+++ client.c 21 Sep 2003 16:21:38 -0000 1.17
@@ -217,7 +217,7 @@
size_t i, count;
/* find the oldest clients and put them to destroy-buffer */
- destroy_buf = buffer_create_static_hard(data_stack_pool,
+ destroy_buf = buffer_create_static_hard(pool_datastack_create(),
sizeof(struct pop3_client *) *
CLIENT_DESTROY_OLDEST_COUNT);
hash_foreach(clients, client_hash_destroy_oldest, destroy_buf);
More information about the dovecot-cvs
mailing list