From 779e9fb5fef546ba4799db5daff45d06017be528 Mon Sep 17 00:00:00 2001 From: hasso Date: Mon, 7 Mar 2005 08:35:39 +0000 Subject: * command.c: host.name might be NULL. * vty.c: Fix fd leak. [backport candidate] --- lib/command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/command.c') diff --git a/lib/command.c b/lib/command.c index 020cfec1..26d6821a 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2439,7 +2439,8 @@ DEFUN (show_version, SHOW_STR "Displays zebra version\n") { - vty_out (vty, "Quagga %s (%s).%s", QUAGGA_VERSION, host.name, VTY_NEWLINE); + vty_out (vty, "Quagga %s (%s).%s", QUAGGA_VERSION, host.name?host.name:"", + VTY_NEWLINE); vty_out (vty, "%s%s", QUAGGA_COPYRIGHT, VTY_NEWLINE); return CMD_SUCCESS; -- cgit v1.2.3