dovecot-2.2: auth: Mark memory pools as growing and use the same...

dovecot at dovecot.org dovecot at dovecot.org
Thu Sep 25 10:38:29 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/569d41d21ec3
changeset: 17837:569d41d21ec3
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Sep 25 13:38:09 2014 +0300
description:
auth: Mark memory pools as growing and use the same sizes for all mechanisms.
Mainly to have DEBUG log fewer warnings.

diffstat:

 src/auth/auth-request.c       |  2 +-
 src/auth/db-dict.c            |  2 +-
 src/auth/db-ldap.c            |  2 +-
 src/auth/mech-anonymous.c     |  2 +-
 src/auth/mech-apop.c          |  2 +-
 src/auth/mech-cram-md5.c      |  2 +-
 src/auth/mech-digest-md5.c    |  2 +-
 src/auth/mech-dovecot-token.c |  2 +-
 src/auth/mech-external.c      |  2 +-
 src/auth/mech-gssapi.c        |  2 +-
 src/auth/mech-login.c         |  2 +-
 src/auth/mech-ntlm.c          |  2 +-
 src/auth/mech-otp.c           |  2 +-
 src/auth/mech-plain.c         |  2 +-
 src/auth/mech-rpa.c           |  2 +-
 src/auth/mech-scram-sha1.c    |  2 +-
 src/auth/mech-skey.c          |  2 +-
 src/auth/mech-winbind.c       |  2 +-
 18 files changed, 18 insertions(+), 18 deletions(-)

diffs (216 lines):

diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/auth-request.c
--- a/src/auth/auth-request.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/auth-request.c	Thu Sep 25 13:38:09 2014 +0300
@@ -73,7 +73,7 @@
 	struct auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("auth_request", 1024);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"auth_request", 1024);
 	request = p_new(pool, struct auth_request, 1);
 	request->pool = pool;
 
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/db-dict.c
--- a/src/auth/db-dict.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/db-dict.c	Thu Sep 25 13:38:09 2014 +0300
@@ -443,7 +443,7 @@
 	pool_t pool;
 	int ret;
 
-	pool = pool_alloconly_create("auth dict lookup", 1024);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"auth dict lookup", 1024);
 	iter = p_new(pool, struct db_dict_value_iter, 1);
 	iter->pool = pool;
 	iter->conn = conn;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/db-ldap.c
--- a/src/auth/db-ldap.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/db-ldap.c	Thu Sep 25 13:38:09 2014 +0300
@@ -1505,7 +1505,7 @@
 	const char *suffix;
 	pool_t pool;
 
-	pool = pool_alloconly_create("ldap result iter", 1024);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"ldap result iter", 1024);
 	ctx = p_new(pool, struct db_ldap_result_iterate_context, 1);
 	ctx->pool = pool;
 	ctx->auth_request = ldap_request->request.auth_request;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-anonymous.c
--- a/src/auth/mech-anonymous.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-anonymous.c	Thu Sep 25 13:38:09 2014 +0300
@@ -29,7 +29,7 @@
         struct auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("anonymous_auth_request", 512);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"anonymous_auth_request", 2048);
 	request = p_new(pool, struct auth_request, 1);
 	request->pool = pool;
 	return request;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-apop.c
--- a/src/auth/mech-apop.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-apop.c	Thu Sep 25 13:38:09 2014 +0300
@@ -145,7 +145,7 @@
 	struct apop_auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("apop_auth_request", 1024);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"apop_auth_request", 2048);
 	request = p_new(pool, struct apop_auth_request, 1);
 	request->pool = pool;
 
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-cram-md5.c
--- a/src/auth/mech-cram-md5.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-cram-md5.c	Thu Sep 25 13:38:09 2014 +0300
@@ -173,7 +173,7 @@
 	struct cram_auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("cram_md5_auth_request", 2048);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"cram_md5_auth_request", 2048);
 	request = p_new(pool, struct cram_auth_request, 1);
 	request->pool = pool;
 
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-digest-md5.c
--- a/src/auth/mech-digest-md5.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-digest-md5.c	Thu Sep 25 13:38:09 2014 +0300
@@ -592,7 +592,7 @@
 	struct digest_auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("digest_md5_auth_request", 2048);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"digest_md5_auth_request", 2048);
 	request = p_new(pool, struct digest_auth_request, 1);
 	request->pool = pool;
 	request->qop = QOP_AUTH;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-dovecot-token.c
--- a/src/auth/mech-dovecot-token.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-dovecot-token.c	Thu Sep 25 13:38:09 2014 +0300
@@ -69,7 +69,7 @@
 	struct auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("dovecot_token_auth_request", 512);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"dovecot_token_auth_request", 512);
 	request = p_new(pool, struct auth_request, 1);
 	request->pool = pool;
 	return request;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-external.c
--- a/src/auth/mech-external.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-external.c	Thu Sep 25 13:38:09 2014 +0300
@@ -45,7 +45,7 @@
         struct auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("external_auth_request", 2048);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"external_auth_request", 2048);
 	request = p_new(pool, struct auth_request, 1);
 	request->pool = pool;
 	return request;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-gssapi.c
--- a/src/auth/mech-gssapi.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-gssapi.c	Thu Sep 25 13:38:09 2014 +0300
@@ -122,7 +122,7 @@
 	struct gssapi_auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("gssapi_auth_request", 1024);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"gssapi_auth_request", 2048);
 	request = p_new(pool, struct gssapi_auth_request, 1);
 	request->pool = pool;
 
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-login.c
--- a/src/auth/mech-login.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-login.c	Thu Sep 25 13:38:09 2014 +0300
@@ -57,7 +57,7 @@
 	struct auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("login_auth_request", 1024);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"login_auth_request", 2048);
 	request = p_new(pool, struct auth_request, 1);
 	request->pool = pool;
 	return request;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-ntlm.c
--- a/src/auth/mech-ntlm.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-ntlm.c	Thu Sep 25 13:38:09 2014 +0300
@@ -238,7 +238,7 @@
 	struct ntlm_auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("ntlm_auth_request", 1024);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"ntlm_auth_request", 2048);
 	request = p_new(pool, struct ntlm_auth_request, 1);
 	request->pool = pool;
 
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-otp.c
--- a/src/auth/mech-otp.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-otp.c	Thu Sep 25 13:38:09 2014 +0300
@@ -237,7 +237,7 @@
 
 	otp_lock_init();
 
-	pool = pool_alloconly_create("otp_auth_request", 256);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"otp_auth_request", 2048);
 	request = p_new(pool, struct otp_auth_request, 1);
 	request->pool = pool;
 	request->lock = FALSE;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-plain.c
--- a/src/auth/mech-plain.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-plain.c	Thu Sep 25 13:38:09 2014 +0300
@@ -68,7 +68,7 @@
         struct auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("plain_auth_request", 2048);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"plain_auth_request", 2048);
 	request = p_new(pool, struct auth_request, 1);
 	request->pool = pool;
 	return request;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-rpa.c
--- a/src/auth/mech-rpa.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-rpa.c	Thu Sep 25 13:38:09 2014 +0300
@@ -567,7 +567,7 @@
 	struct rpa_auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("rpa_auth_request", 1024);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"rpa_auth_request", 2048);
 	request = p_new(pool, struct rpa_auth_request, 1);
 	request->pool = pool;
 	request->phase = 0;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-scram-sha1.c
--- a/src/auth/mech-scram-sha1.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-scram-sha1.c	Thu Sep 25 13:38:09 2014 +0300
@@ -390,7 +390,7 @@
 	struct scram_auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("scram_sha1_auth_request", 2048);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"scram_sha1_auth_request", 2048);
 	request = p_new(pool, struct scram_auth_request, 1);
 	request->pool = pool;
 
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-skey.c
--- a/src/auth/mech-skey.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-skey.c	Thu Sep 25 13:38:09 2014 +0300
@@ -176,7 +176,7 @@
 
 	otp_lock_init();
 
-	pool = pool_alloconly_create("skey_auth_request", 256);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"skey_auth_request", 2048);
 	request = p_new(pool, struct otp_auth_request, 1);
 	request->pool = pool;
 	request->lock = FALSE;
diff -r 90891ca867f3 -r 569d41d21ec3 src/auth/mech-winbind.c
--- a/src/auth/mech-winbind.c	Thu Sep 25 13:28:39 2014 +0300
+++ b/src/auth/mech-winbind.c	Thu Sep 25 13:38:09 2014 +0300
@@ -313,7 +313,7 @@
 	struct winbind_auth_request *request;
 	pool_t pool;
 
-	pool = pool_alloconly_create("winbind_auth_request", 1024);
+	pool = pool_alloconly_create(MEMPOOL_GROWING"winbind_auth_request", 2048);
 	request = p_new(pool, struct winbind_auth_request, 1);
 	request->auth_request.pool = pool;
 


More information about the dovecot-cvs mailing list