mirror of
https://github.com/samba-team/samba.git
synced 2025-03-02 08:58:33 +03:00
r11279: it should be only possible to register a 0x1C name, when the NBT_NM_GROUP flag is set
metze (This used to be commit 81447f440cb339bf8c72706a752b853d3acb0e2d)
This commit is contained in:
parent
7751bd939f
commit
3aae4d0224
@ -150,6 +150,12 @@ static void nbtd_winsserver_register(struct nbt_name_socket *nbtsock,
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* w2k3 refuses 0x1C names with out marked as group */
|
||||
if (name->type == NBT_NAME_LOGON && !(nb_flags & NBT_NM_GROUP)) {
|
||||
rcode = NBT_RCODE_RFS;
|
||||
goto done;
|
||||
}
|
||||
|
||||
status = winsdb_lookup(winssrv->wins_db, name, packet, &rec);
|
||||
if (NT_STATUS_EQUAL(NT_STATUS_OBJECT_NAME_NOT_FOUND, status)) {
|
||||
rcode = wins_register_new(nbtsock, packet, src);
|
||||
|
Loading…
x
Reference in New Issue
Block a user