Revision f4ab2317 proto/bgp/bgp.c

View differences:

proto/bgp/bgp.c
503 503
{
504 504
  struct bgp_proto *p = (struct bgp_proto *) P;
505 505

  
506
  strcpy(buf, bgp_state_names[MAX(p->incoming_conn.state, p->outgoing_conn.state)]);
506
  if (P->proto_state == PS_DOWN)
507
    buf[0] = 0;
508
  else
509
    strcpy(buf, bgp_state_names[MAX(p->incoming_conn.state, p->outgoing_conn.state)]);
507 510
}
508 511

  
509 512
static int

Also available in: Unified diff