Revision 7ff34ca2 proto/bgp/bgp.c

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);

Also available in: Unified diff