Changeset 989 for vendor/current/source4/librpc
- Timestamp:
- Nov 25, 2016, 8:04:54 PM (9 years ago)
- Location:
- vendor/current/source4/librpc/rpc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/librpc/rpc/dcerpc.c
r988 r989 156 156 c->srv_max_xmit_frag = 5840; 157 157 c->srv_max_recv_frag = 5840; 158 c->max_total_response_size = DCERPC_NCACN_RESPONSE_DEFAULT_MAX_SIZE; 158 159 c->pending = NULL; 159 160 … … 1415 1416 /* the bind_ack might contain a reply set of credentials */ 1416 1417 if (pkt->auth_length != 0 && sec->tmp_auth_info.in != NULL) { 1417 uint32_t auth_length;1418 1419 1418 status = dcerpc_pull_auth_trailer(pkt, sec->tmp_auth_info.mem, 1420 1419 &pkt->u.bind_ack.auth_info, 1421 1420 sec->tmp_auth_info.in, 1422 &auth_length, true);1421 NULL, true); 1423 1422 if (tevent_req_nterror(req, status)) { 1424 1423 return; … … 1578 1577 length = pkt->u.response.stub_and_verifier.length; 1579 1578 1580 if (req->payload.length + length > DCERPC_NCACN_PAYLOAD_MAX_SIZE) {1579 if (req->payload.length + length > c->max_total_response_size) { 1581 1580 DEBUG(2,("Unexpected total payload 0x%X > 0x%X dcerpc response\n", 1582 1581 (unsigned)req->payload.length + length, 1583 DCERPC_NCACN_PAYLOAD_MAX_SIZE));1582 (unsigned)c->max_total_response_size)); 1584 1583 dcerpc_connection_dead(c, NT_STATUS_RPC_PROTOCOL_ERROR); 1585 1584 return; … … 2435 2434 /* the alter_resp might contain a reply set of credentials */ 2436 2435 if (pkt->auth_length != 0 && sec->tmp_auth_info.in != NULL) { 2437 uint32_t auth_length;2438 2439 2436 status = dcerpc_pull_auth_trailer(pkt, sec->tmp_auth_info.mem, 2440 2437 &pkt->u.alter_resp.auth_info, 2441 2438 sec->tmp_auth_info.in, 2442 &auth_length, true);2439 NULL, true); 2443 2440 if (tevent_req_nterror(req, status)) { 2444 2441 return; -
vendor/current/source4/librpc/rpc/dcerpc.h
r988 r989 108 108 /* the next context_id to be assigned */ 109 109 uint32_t next_context_id; 110 111 /* The maximum total payload of reassembled response pdus */ 112 size_t max_total_response_size; 110 113 }; 111 114
Note:
See TracChangeset
for help on using the changeset viewer.