]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
MRT Table Dump: Bugfix buffer memory reallocation
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Mon, 3 Aug 2015 11:03:40 +0000 (13:03 +0200)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Mon, 3 Aug 2015 11:05:41 +0000 (13:05 +0200)
nest/mrtdump.c

index 115bbeb40f959643a75ec1dc58168da4dacacf12..787cbf983f1dc5ab81e33dd1329adb369a02daee 100644 (file)
@@ -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)