summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-03-01 23:00:04 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-03-01 23:00:04 +0000
commit397f40f420c930ae2d7764e2994933947fc49e82 (patch)
treed5aa09174c2dbad9215c09f1b3f7e188db9ad413 /usr.sbin
parent290380668b40ee8fce7be1039970a769e6eb0ac4 (diff)
don't print empty descr
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/printconf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/printconf.c b/usr.sbin/bgpd/printconf.c
index f421184e366..97d0a0d4d43 100644
--- a/usr.sbin/bgpd/printconf.c
+++ b/usr.sbin/bgpd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.7 2004/03/01 17:04:07 henning Exp $ */
+/* $OpenBSD: printconf.c,v 1.8 2004/03/01 23:00:03 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -132,7 +132,8 @@ print_peer(struct peer_config *p)
c = nada;
printf("%sneighbor %s {\n", c, log_addr(&p->remote_addr));
- printf("%s\tdescr \"%s\"\n", c, p->descr);
+ if (p->descr[0])
+ printf("%s\tdescr \"%s\"\n", c, p->descr);
printf("%s\tremote-as %u\n", c, p->remote_as);
if (p->distance > 1)
printf("%s\tmultihop %u\n", c, p->distance);