-Piece of fix for bug 1965012, server process dying when malformed request passed to table layer

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1426 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-05-16 18:20:15 +00:00
parent 5075adf269
commit f69c35b21d

View File

@ -1498,6 +1498,9 @@ sub getAttribs
}
$statement .= "(\"disable\" is NULL or \"disable\" in ('0','no','NO','No','nO'))";
my $query = $self->{dbh}->prepare($statement);
unless (defined $query) {
return undef;
}
$query->execute(@exeargs);
my $data;
while ($data = $query->fetchrow_hashref())