From 896113b13d1666837c9aec8d2e90ab21b0675e8a Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 14 May 2019 11:57:15 +0200 Subject: [PATCH] order --- src/json/json_mhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json/json_mhd.c b/src/json/json_mhd.c index b6ab2d116..2112d4646 100644 --- a/src/json/json_mhd.c +++ b/src/json/json_mhd.c @@ -126,7 +126,7 @@ buffer_append (struct Buffer *buf, { if (buf->fill + data_size > max_size) return GNUNET_NO; - if (data_size + buf->fill > buf->alloc) + if (buf->fill + data_size > buf->alloc) { char *new_buf; size_t new_size = buf->alloc; -- 2.25.1