diff --git a/nselib/smb.lua b/nselib/smb.lua index a9c82fd5c..2d9afe431 100644 --- a/nselib/smb.lua +++ b/nselib/smb.lua @@ -1030,21 +1030,16 @@ function negotiate_protocol(smb) return false, "SMB: ERROR: Ran off the end of SMB packet; likely due to server truncation [12]" end - -- Get the domain as a Unicode string local ch, dummy domain = "" server = "" + -- Get the domain as a Unicode string + -- Note: This can be null, some configurations of Samba leave this off pos, ch, dummy = bin.unpack("