From: Paul Jakma Date: Tue, 13 Nov 2007 09:32:23 +0000 (+0000) Subject: [bgpd] small fix for crash if 'listenon' argument is not given X-Git-Tag: frr-2.0-rc1~2448 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=7e992e95e3fb9453efb6018dca9016139a8396f1;p=mirror%2Ffrr.git [bgpd] small fix for crash if 'listenon' argument is not given 2007-11-13 Paul Jakma * bgp_main.c: Small fix, format string parameters should never be NULL - it's not strictly valid and some libc's don't let you away with. --- diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog index 0fdd36ac1f..c1f12d6776 100644 --- a/bgpd/ChangeLog +++ b/bgpd/ChangeLog @@ -1,3 +1,9 @@ +2007-11-13 Paul Jakma + + * bgp_main.c: Small fix, format string parameters should never + be NULL - it's not strictly valid and some libc's don't let + you away with. + 2007-10-30 Nick Hilliard * bgp_main.c: Add 'listenon' argument, to pass address to bind diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 843b124ecb..fee7f37745 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -321,7 +321,9 @@ main (int argc, char **argv) /* Print banner. */ zlog_notice ("BGPd %s starting: vty@%d, bgp@%s:%d", QUAGGA_VERSION, - vty_port, bm->address, bm->port); + vty_port, + (bm->address ? bm->address : "", + bm->port); /* Start finite state machine, here we go! */ while (thread_fetch (master, &thread))