diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 46bf106c2..62fc1b60c 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -1062,6 +1062,9 @@ sub becomeuser { my $passtab = xCAT::Table->new('passwd'); my $id=shift; my $pass=shift; + unless (defined $id and defined $pass) { + return undef; + } my $passent=$passtab->getAttribs({key=>'xcat',username=>$id},['password']); unless ($passent) { return undef;