summaryrefslogtreecommitdiff
path: root/source3/lib/membuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/membuffer.c')
-rw-r--r--source3/lib/membuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/membuffer.c b/source3/lib/membuffer.c
index cf832c13cc..90b07047d3 100644
--- a/source3/lib/membuffer.c
+++ b/source3/lib/membuffer.c
@@ -293,11 +293,11 @@ BOOL mem_realloc_data(struct mem_buf *buf, int new_size)
/*******************************************************************
reallocate a memory buffer, retrospectively :-)
********************************************************************/
-BOOL mem_grow_data(struct mem_buf **buf, BOOL io, int new_size)
+BOOL mem_grow_data(struct mem_buf **buf, BOOL io, int new_size, BOOL force_grow)
{
if (new_size + (*buf)->margin >= (*buf)->data_size)
{
- if (io)
+ if (io && !force_grow)
{
DEBUG(3,("mem_grow_data: cannot resize when reading from a data stream\n"));
}