Revision 7ff34ca2

View differences:

proto/bgp/bgp.c
1611 1611
  if (message)
1612 1612
  {
1613 1613
    uint msg_len = strlen(message);
1614
    msg_len = MIN(msg_len, 128);
1614
    msg_len = MIN(msg_len, 255);
1615 1615

  
1616 1616
    /* Buffer will be freed automatically by protocol shutdown */
1617 1617
    data = mb_alloc(p->p.pool, msg_len + 1);
proto/bgp/packets.c
2893 2893
    return 1;
2894 2894

  
2895 2895
  /* Handle proper message */
2896
  if ((msg_len > 128) && (msg_len + 1 > len))
2896
  if ((msg_len > 255) && (msg_len + 1 > len))
2897 2897
    return 0;
2898 2898

  
2899 2899
  /* Some elementary cleanup */

Also available in: Unified diff