]> git.puffer.fish Git - mirror/frr.git/commitdiff
[bgpd] small fix for crash if 'listenon' argument is not given
authorPaul Jakma <paul.jakma@sun.com>
Tue, 13 Nov 2007 09:32:23 +0000 (09:32 +0000)
committerPaul Jakma <paul.jakma@sun.com>
Tue, 13 Nov 2007 09:32:23 +0000 (09:32 +0000)
2007-11-13 Paul Jakma <paul.jakma@sun.com>

* 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.

bgpd/ChangeLog
bgpd/bgp_main.c

index 0fdd36ac1fea5ef7b5090413f04c384bd9515a37..c1f12d67761ca9d08259c78200c88ea439938512 100644 (file)
@@ -1,3 +1,9 @@
+2007-11-13 Paul Jakma <paul.jakma@sun.com>
+
+       * 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 <nick@inex.ie>
 
        * bgp_main.c: Add 'listenon' argument, to pass address to bind
index 843b124ecb06d843bc398f7ee1cd1d5b3ccc083c..fee7f3774586102a0f4a3abead13942aa547cb9a 100644 (file)
@@ -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 : "<all>", 
+              bm->port);
 
   /* Start finite state machine, here we go! */
   while (thread_fetch (master, &thread))