1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

merge from appliance_head

(This used to be commit 38d2d26af9)
This commit is contained in:
Gerald Carter 2002-01-22 18:19:00 +00:00
parent 528ff0d6f7
commit e24937d9a2

View File

@ -574,10 +574,13 @@ authentication failed. Denying the request.\n", p->name));
}
/*
* Check the data length doesn't go over the 10Mb limit.
* Check the data length doesn't go over the 15Mb limit.
* increased after observing a bug in the Windows NT 4.0 SP6a
* spoolsv.exe when the response to a GETPRINTERDRIVER2 RPC
* will not fit in the initial buffer of size 0x1068 --jerry 22/01/2002
*/
if(prs_data_size(&p->in_data.data) + data_len > 10*1024*1024) {
if(prs_data_size(&p->in_data.data) + data_len > 15*1024*1024) {
DEBUG(0,("process_request_pdu: rpc data buffer too large (%u) + (%u)\n",
(unsigned int)prs_data_size(&p->in_data.data), (unsigned int)data_len ));
set_incoming_fault(p);