From 12f6ea2300402c821595297ff0c2c75055e50031 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/vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vty.c') diff --git a/lib/vty.c b/lib/vty.c index 9cc5ec4e..f8e483f6 100644 --- a/lib/vty.c +++ b/lib/vty.c @@ -2246,7 +2246,7 @@ vty_use_backup_config (char *fullpath) free (fullpath_sav); free (fullpath_tmp); - return fopen (fullpath, "r"); + return ret; } /* Read up configuration file from file_name. */ -- cgit v1.2.1