* command.c: host.name might be NULL.
	* vty.c: Fix fd leak.

	[backport candidate]
diff --git a/lib/vty.c b/lib/vty.c
index 9cc5ec4..f8e483f 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2246,7 +2246,7 @@
   
   free (fullpath_sav);
   free (fullpath_tmp);
-  return fopen (fullpath, "r");
+  return ret;
 }
 
 /* Read up configuration file from file_name. */