mirror of https://github.com/secdev/scapy.git
Fix Dot11WEP icv in Python2
The method crc32 may return nagative value in python2, made it unsigned.
This commit is contained in:
parent
fedbf520a0
commit
b00845f42b
|
@ -313,7 +313,7 @@ class Dot11WEP(Packet):
|
|||
key = conf.wepkey
|
||||
if key:
|
||||
if self.icv is None:
|
||||
pay += struct.pack("<I", crc32(pay))
|
||||
pay += struct.pack("<I", crc32(pay) & 0xffffffff)
|
||||
icv = b""
|
||||
else:
|
||||
icv = p[4:8]
|
||||
|
|
Loading…
Reference in New Issue