From 0308e295ee092812dcdadcc2d5634454b3e11783 Mon Sep 17 00:00:00 2001 From: yinle Date: Tue, 24 Jun 2014 10:57:47 -0700 Subject: [PATCH] Add check of read configuration file --- xCAT-server/share/xcat/tools/xCATreg | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/share/xcat/tools/xCATreg b/xCAT-server/share/xcat/tools/xCATreg index ddbbbb8b4..19348443c 100644 --- a/xCAT-server/share/xcat/tools/xCATreg +++ b/xCAT-server/share/xcat/tools/xCATreg @@ -1190,6 +1190,7 @@ sub read_conf{ my $keys; if (!open($keys, "<$configfile")) { send_msg(0, "Open configuration file error"); + return undef; } my $line; while ($line = <$keys>) {