diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 9f2b13aeb..08ccfc13d 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -4163,17 +4163,19 @@ sub activatesession { $error = "Requested maximum privilege level exceeds user and/of channel privilege limit"; } - $auth = $response[37]; - if($auth == 0x00) { - $authoffset=16; - } - elsif($auth == 0x02) { - } - elsif($auth == 0x04) { - } - else { - $error = "activate session requested unsupported Authentication Type Support"; - } + unless ($error) { + $auth = $response[37]; + if($auth == 0x00) { + $authoffset=16; + } + elsif($auth == 0x02) { + } + elsif($auth == 0x04) { + } + else { + $error = "activate session requested unsupported Authentication Type Support"; + } + } ###check @session_id = @response[38,39,40,41];