diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-06-30 01:59:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:18:58 -0500 |
commit | 939cb07232fc522ff53b32a6f201a8ff951aa4ae (patch) | |
tree | d77f4167bacb983ceb9bf9a4706afc6de99f6e31 /source4 | |
parent | c645eba60b611b0dd1ee5a5c96c0ed1d188bf91d (diff) | |
download | samba-939cb07232fc522ff53b32a6f201a8ff951aa4ae.tar.gz samba-939cb07232fc522ff53b32a6f201a8ff951aa4ae.tar.bz2 samba-939cb07232fc522ff53b32a6f201a8ff951aa4ae.zip |
r8006: I have seen w2k3 send multiple encoding syntaxes in rpc bind
requests. This is a simple change to accept that, as long as the first
one is NDR.
(This used to be commit 330293ddff39266abb688c6292e59472ff47aebe)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/dcerpc_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c index 709216db46..87f8c9a421 100644 --- a/source4/rpc_server/dcerpc_server.c +++ b/source4/rpc_server/dcerpc_server.c @@ -468,7 +468,7 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call) uint32_t context_id; const struct dcesrv_interface *iface; - if (call->pkt.u.bind.num_contexts != 1 || + 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); } @@ -493,6 +493,7 @@ static NTSTATUS dcesrv_bind(struct dcesrv_call_state *call) strcasecmp(NDR_GUID, transfer_syntax) != 0 || NDR_GUID_VERSION != transfer_syntax_version) { /* we only do NDR encoded dcerpc */ + DEBUG(0,("Non NDR transfer syntax requested - %s\n", transfer_syntax)); return dcesrv_bind_nak(call, 0); } |