From f442c5dee538155c2e47e6e64fa880f7b598920e Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 23 Jul 2008 23:41:15 +0000 Subject: [PATCH] -Correct warning about unitialized value in ipmi plugin git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1943 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 02cf0a662..050e411fc 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -4335,7 +4335,7 @@ sub domsg { #local $SIG{ALRM} = sub { $timedout = 1 and die }; #alarm($timeout); my $received = $s->can_read($timeout); - if($received > 0) { + if($received and $received > 0) { if ($sock->recv($recv,128)) { if($recv) { @response = unpack("C*",$recv);