From c8ac83ccccf8d069a0f60117f1d2b5a7c0879a60 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Sun, 19 May 2013 18:51:42 -0400 Subject: [PATCH] Fix the integrity pad calculation (shame python doesn't have a 'use strict') --- ipmibase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipmibase.py b/ipmibase.py index e5b9b127..d11fdd61 100644 --- a/ipmibase.py +++ b/ipmibase.py @@ -245,7 +245,7 @@ class IPMISession: if self.integrityalgo: #see table 13-8, RMCP+ packet format TODO: SHA256 which is now allowed neededpad=(len(message)-2)%4 if neededpad: - needpad = 4-neededpad + neededpad = 4-neededpad message += [0xff]*neededpad message.append(neededpad) message.append(7) #reserved, 7 is the required value for the specification followed