]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
DEBUG: Removed buffer's tests against overflows. It slows down too much.
authorTimo Sirainen <tss@iki.fi>
Fri, 18 Jun 2010 15:28:14 +0000 (16:28 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 18 Jun 2010 15:28:14 +0000 (16:28 +0100)
--HG--
branch : HEAD

src/lib/buffer.c

index f10a47e22888e76ad05361305ee940e8fbd621e1..b92837e76711f3a0d1b6181cc478cd959052a511 100644 (file)
@@ -63,7 +63,7 @@ buffer_check_limits(struct real_buffer *buf, size_t pos, size_t data_size)
                buffer_alloc(buf, pool_get_exp_grown_size(buf->pool, buf->alloc,
                                                          new_size));
        }
-#ifdef DEBUG
+#if 0
        else if (new_size > buf->used && buf->alloced &&
                 !buf->pool->alloconly_pool && !buf->pool->datastack_pool) {
                void *new_buf;