1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-05 04:23:51 +03:00

r12695: A dot is allowed in NetBIOS names.

This commit is contained in:
Jelmer Vernooij
2006-01-03 17:22:19 +00:00
committed by Gerald (Jerry) Carter
parent c722f665c9
commit f4ac7d6359

View File

@@ -481,11 +481,11 @@ member: %s
}
// Check whether a name is valid as a NetBIOS name.
// FIXME: There are probably more constraints here
// FIXME: There are probably more constraints here.
// crh has a paragraph on this in his book (1.4.1.1)
function valid_netbios_name(name)
{
if (strlen(name) > 13) return false;
if (strstr(name, ".")) return false;
return true;
}