summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
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);