there is a domain name in the GETDC request. this, after hand-editing
the fields in netmon to see if there was any way to detect differences
in various fields (DGRAM_UNIQUE to DGRAM_GROUP; type of NetBIOS name tried
0x1c and 0x1b) and there wasn't.
else
{ /* A full length request */
- if ((!dgram_unique) ||
- dgram->dest_name.name_type == 0x1b)
+ /* if there is more than 16 bytes left,
+ * then there is a domain name in here
+ * which we have to skip.
+ */
+ if (len - PTR_DIFF(q, buf) > 16)
{
/* skip domain name */
int dom_len = CVAL(q, 0);