struct auth_stream_reply *reply;
reply = p_new(pool, struct auth_stream_reply, 1);
- reply->str = str_new(pool, 256);
+ reply->str = str_new(pool, 128);
return reply;
}
pw->stamp = st.st_mtime;
pw->size = st.st_size;
- pw->pool = pool_alloconly_create("passwd_file", 10240);;
+ pw->pool = pool_alloconly_create(MEMPOOL_GROWING"passwd_file", 10240);
pw->users = hash_create(default_pool, pw->pool, 100,
str_hash, (hash_cmp_callback_t *)strcmp);
size = EXT_GLOBAL_ALLOC_SIZE +
initial_count * EXT_PER_ALLOC_SIZE;
map->extension_pool =
- pool_alloconly_create("map extensions",
+ pool_alloconly_create(MEMPOOL_GROWING"map extensions",
nearest_power(size));
} else {
p_clear(map->extension_pool);
i_assert((flags & (HEADER_FILTER_INCLUDE|HEADER_FILTER_EXCLUDE)) != 0);
mstream = i_new(struct header_filter_istream, 1);
- mstream->pool = pool_alloconly_create("header filter stream", 4096);
+ mstream->pool = pool_alloconly_create(MEMPOOL_GROWING
+ "header filter stream", 4096);
mstream->istream.max_buffer_size = input->real_stream->max_buffer_size;
mstream->headers = headers_count == 0 ? NULL :
void env_put(const char *env)
{
- if (pool == NULL)
- pool = pool_alloconly_create("Environment", 2048);
-
+ if (pool == NULL) {
+ pool = pool_alloconly_create(MEMPOOL_GROWING"Environment",
+ 2048);
+ }
if (putenv(p_strdup(pool, env)) != 0)
i_fatal("putenv(%s) failed: %m", env);
}