From: Marcello Stanisci Date: Tue, 14 May 2019 09:57:15 +0000 (+0200) Subject: order X-Git-Tag: v0.11.5~65^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=896113b13d1666837c9aec8d2e90ab21b0675e8a;p=oweals%2Fgnunet.git order --- 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;