1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

r21589: give an error when the assoc_group_id isn't 0

TODO: we need to correctly implement assoc groups!

metze
(This used to be commit df7c6c6e0b961eda8daf182df8faed6b29639149)
This commit is contained in:
Stefan Metzmacher 2007-02-28 17:02:28 +00:00 committed by Gerald (Jerry) Carter
parent 9545dc2835
commit ca14957d50

View File

@ -492,6 +492,10 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call)
uint32_t context_id;
const struct dcesrv_interface *iface;
if (call->pkt.u.bind.assoc_group_id != 0) {
return dcesrv_bind_nak(call, 0);
}
if (call->pkt.u.bind.num_contexts < 1 ||
call->pkt.u.bind.ctx_list[0].num_transfer_syntaxes < 1) {
return dcesrv_bind_nak(call, 0);