-Fix padding mistake in IPMI library
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f96edf4fa9
commit
c38f03b095
@ -436,6 +436,9 @@ sub cbc_pad {
|
||||
} elsif ($mode eq 'd') {
|
||||
my @block = unpack("C*",$block);
|
||||
my $count = pop @block;
|
||||
unless ($count) {
|
||||
return pack("C*",@block);
|
||||
}
|
||||
splice @block,0-$count;
|
||||
return pack("C*",@block);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user