Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

Location:
vendor/current/source4/librpc/rpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/librpc/rpc/dcerpc.c

    r988 r989  
    156156        c->srv_max_xmit_frag = 5840;
    157157        c->srv_max_recv_frag = 5840;
     158        c->max_total_response_size = DCERPC_NCACN_RESPONSE_DEFAULT_MAX_SIZE;
    158159        c->pending = NULL;
    159160
     
    14151416        /* the bind_ack might contain a reply set of credentials */
    14161417        if (pkt->auth_length != 0 && sec->tmp_auth_info.in != NULL) {
    1417                 uint32_t auth_length;
    1418 
    14191418                status = dcerpc_pull_auth_trailer(pkt, sec->tmp_auth_info.mem,
    14201419                                                  &pkt->u.bind_ack.auth_info,
    14211420                                                  sec->tmp_auth_info.in,
    1422                                                   &auth_length, true);
     1421                                                  NULL, true);
    14231422                if (tevent_req_nterror(req, status)) {
    14241423                        return;
     
    15781577        length = pkt->u.response.stub_and_verifier.length;
    15791578
    1580         if (req->payload.length + length > DCERPC_NCACN_PAYLOAD_MAX_SIZE) {
     1579        if (req->payload.length + length > c->max_total_response_size) {
    15811580                DEBUG(2,("Unexpected total payload 0x%X > 0x%X dcerpc response\n",
    15821581                         (unsigned)req->payload.length + length,
    1583                          DCERPC_NCACN_PAYLOAD_MAX_SIZE));
     1582                         (unsigned)c->max_total_response_size));
    15841583                dcerpc_connection_dead(c, NT_STATUS_RPC_PROTOCOL_ERROR);
    15851584                return;
     
    24352434        /* the alter_resp might contain a reply set of credentials */
    24362435        if (pkt->auth_length != 0 && sec->tmp_auth_info.in != NULL) {
    2437                 uint32_t auth_length;
    2438 
    24392436                status = dcerpc_pull_auth_trailer(pkt, sec->tmp_auth_info.mem,
    24402437                                                  &pkt->u.alter_resp.auth_info,
    24412438                                                  sec->tmp_auth_info.in,
    2442                                                   &auth_length, true);
     2439                                                  NULL, true);
    24432440                if (tevent_req_nterror(req, status)) {
    24442441                        return;
  • vendor/current/source4/librpc/rpc/dcerpc.h

    r988 r989  
    108108        /* the next context_id to be assigned */
    109109        uint32_t next_context_id;
     110
     111        /* The maximum total payload of reassembled response pdus */
     112        size_t max_total_response_size;
    110113};
    111114
Note: See TracChangeset for help on using the changeset viewer.