Revision 852b7062 proto/bgp/packets.c

View differences:

proto/bgp/packets.c
219 219
  ip_addr a;
220 220
  int bytes;
221 221

  
222
  while (!EMPTY_LIST(buck->prefixes) && remains >= 5)
222
  while (!EMPTY_LIST(buck->prefixes) && remains >= (1+sizeof(ip_addr)))
223 223
    {
224 224
      struct bgp_prefix *px = SKIP_BACK(struct bgp_prefix, bucket_node, HEAD(buck->prefixes));
225 225
      DBG("\tDequeued route %I/%d\n", px->n.prefix, px->n.pxlen);

Also available in: Unified diff