summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-13 01:23:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:41 -0500
commit2d5ca36872d10138ac997a0d91916abb9b637c6e (patch)
treec16920c391681c2e58ea2f251d4514c761fac7c5 /source4
parent984e71e5e51bb7b7abc390f95691affa2d9c0f33 (diff)
downloadsamba-2d5ca36872d10138ac997a0d91916abb9b637c6e.tar.gz
samba-2d5ca36872d10138ac997a0d91916abb9b637c6e.tar.bz2
samba-2d5ca36872d10138ac997a0d91916abb9b637c6e.zip
r2301: add a server side warning when we receive more RPC data than we
expect. It isn't an error as w2k3 does this on its first packet when NTLM2 signing is used. (This used to be commit daaee86d1441afec9915e5f2ffc10b200a1ff564)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/dcerpc_server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index 4c460d377a..e619053f6a 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -629,6 +629,12 @@ static NTSTATUS dcesrv_request(struct dcesrv_call_state *call)
return dcesrv_fault(call, DCERPC_FAULT_NDR);
}
+ if (pull->offset != pull->data_size) {
+ DEBUG(3,("Warning: %d extra bytes in incoming RPC request\n",
+ pull->data_size - pull->offset));
+ dump_data(10, pull->data+pull->offset, pull->data_size - pull->offset);
+ }
+
call->fault_code = 0;
/* call the dispatch function */