+2005-03-07 Michael Sandee <voidptr@voidptr.sboost.org>
+
+ * command.c: host.name might be NULL.
+ * vty.c: Fix fd leak.
+
2005-02-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* stream.c: (stream_read_try) Log a warning message if a fatal
/*
- $Id: command.c,v 1.36 2005/01/28 20:28:35 ajs Exp $
+ $Id: command.c,v 1.37 2005/03/07 08:35:39 hasso Exp $
Command interpreter routine for virtual terminal [aka TeletYpe]
Copyright (C) 1997, 98, 99 Kunihiro Ishiguro
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;