* isis_spf.c: host.name might be NULL.
[backport candidate]
diff --git a/isisd/ChangeLog b/isisd/ChangeLog
index c71f056..d7fadd0 100644
--- a/isisd/ChangeLog
+++ b/isisd/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-07 Michael Sandee <voidptr@voidptr.sboost.org>
+
+ * isis_spf.c: host.name might be NULL.
+
2005-02-23 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* isis_main.c: (reload) Call vty_reset instead of vty_finish (both
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c
index 66d4ca7..90a9ac5 100644
--- a/isisd/isis_spf.c
+++ b/isisd/isis_spf.c
@@ -1279,7 +1279,8 @@
continue;
if (memcmp (vertex->N.id, isis->sysid, ISIS_SYS_ID_LEN) == 0)
{
- vty_out (vty, "%s --%s", host.name, VTY_NEWLINE);
+ vty_out (vty, "%s --%s", host.name?host.name:"",
+ VTY_NEWLINE);
}
else
{