Skip to content

Commit

Permalink
Fix incorrect padding (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtpt-erikgeiser authored Aug 1, 2024
1 parent 0f64d63 commit 53c3c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impacket/smb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ class SMBSessionSetupAndX_Extended_Response_Data(AsciiOrUnicodeStructure):
)
def getData(self):
if self.structure == self.UnicodeStructure:
if len(str(self['SecurityBlob'])) % 2 == 0:
if len(self['SecurityBlob']) % 2 == 0:
self['Pad'] = '\x00'
return AsciiOrUnicodeStructure.getData(self)

Expand Down

0 comments on commit 53c3c76

Please sign in to comment.