2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-11 12:06:26 +00:00

Avoid failure on receiving malformed SOL payload packets

Some devices can emit invalid IPMI packets with missing payloads.  Do not be overly burdened by such packets.
This commit is contained in:
Jarrod Johnson
2026-09-10 15:09:32 -04:00
parent 6e7ea6c8b8
commit c7d2e17545
@@ -1590,6 +1590,9 @@ class Session(object):
if ptype == 0:
await self._parse_ipmi_payload(payload)
elif ptype == 1: # There should be no other option
if not payload:
# malformed SOL Payload, ignore it
return
if (payload[1] & 0b1111) and self.last_payload_type == 1:
# for ptype 1, the 4 least significant bits of 2nd byte
# is the ACK number.