From: Pavel TvrdĂ­k Date: Mon, 3 Aug 2015 11:03:40 +0000 (+0200) Subject: MRT Table Dump: Bugfix buffer memory reallocation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0722998578ece16e48bc3181da751aa53180290c;p=thirdparty%2Fbird.git MRT Table Dump: Bugfix buffer memory reallocation --- diff --git a/nest/mrtdump.c b/nest/mrtdump.c index 115bbeb40..787cbf983 100644 --- a/nest/mrtdump.c +++ b/nest/mrtdump.c @@ -42,7 +42,7 @@ mrt_buffer_free(struct mrt_buffer *buf) static void mrt_buffer_enlarge(struct mrt_buffer *buf, size_t min_required_capacity) { - if (min_required_capacity < buf->msg_capacity) + if (min_required_capacity > buf->msg_capacity) { buf->msg_capacity *= 2; if (min_required_capacity > buf->msg_capacity)