summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-14 12:21:21 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-14 12:21:21 +0000
commita05882b34beffae26723a6b22a467ab10ee28dfe (patch)
tree43d4d5adff04920d67c95e238cb1ddc3074ef842 /source4/rpc_server
parentb356f3e43e360a409cd30fac97a0902d9b7ef11f (diff)
downloadsamba-a05882b34beffae26723a6b22a467ab10ee28dfe.tar.gz
samba-a05882b34beffae26723a6b22a467ab10ee28dfe.tar.bz2
samba-a05882b34beffae26723a6b22a467ab10ee28dfe.zip
fixed fragmented signed connections to our rpc server over SMB
(This used to be commit f5df126c254bcb96dfb42096d7247215c7e7a89a)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dcerpc_server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index 16b573cfad..a34c00cd58 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -467,7 +467,9 @@ static NTSTATUS dcesrv_request(struct dcesrv_call_state *call)
length = stub.length;
if (length + DCERPC_RESPONSE_LENGTH > call->dce->cli_max_recv_frag) {
- length = call->dce->cli_max_recv_frag - DCERPC_RESPONSE_LENGTH;
+ /* the 32 is to cope with signing data */
+ length = call->dce->cli_max_recv_frag -
+ (DCERPC_MAX_SIGN_SIZE+DCERPC_RESPONSE_LENGTH);
}
/* form the dcerpc response packet */