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>) {