From 4af8710b51e35f24c4cb54e544303eddc1160fda Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sun, 28 Sep 2008 18:46:48 +0000 Subject: [PATCH] -Address errors on bad input from WebUI git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2251 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 3 +++ 1 file changed, 3 insertions(+) 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;