Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/librpc/ndr/ndr.c

    r919 r988  
    1 /* 
     1/*
    22   Unix SMB/CIFS implementation.
    33
     
    55
    66   Copyright (C) Andrew Tridgell 2003
    7    
     7   Copyright (C) Jelmer Vernooij 2005-2008
     8
    89   This program is free software; you can redistribute it and/or modify
    910   it under the terms of the GNU General Public License as published by
    1011   the Free Software Foundation; either version 3 of the License, or
    1112   (at your option) any later version.
    12    
     13
    1314   This program is distributed in the hope that it will be useful,
    1415   but WITHOUT ANY WARRANTY; without even the implied warranty of
    1516   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1617   GNU General Public License for more details.
    17    
     18
    1819   You should have received a copy of the GNU General Public License
    1920   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     
    3031#include "librpc/ndr/libndr.h"
    3132#include "../lib/util/dlinklist.h"
    32 #if _SAMBA_BUILD_ == 4
    33 #include "param/param.h"
    34 #endif
    3533
    3634#define NDR_BASE_MARSHALL_SIZE 1024
    3735
    3836/* this guid indicates NDR encoding in a protocol tower */
    39 const struct ndr_syntax_id ndr_transfer_syntax = {
     37const struct ndr_syntax_id ndr_transfer_syntax_ndr = {
    4038  { 0x8a885d04, 0x1ceb, 0x11c9, {0x9f, 0xe8}, {0x08,0x00,0x2b,0x10,0x48,0x60} },
    4139  2
    4240};
    4341
    44 const struct ndr_syntax_id ndr64_transfer_syntax = {
     42const struct ndr_syntax_id ndr_transfer_syntax_ndr64 = {
    4543  { 0x71710533, 0xbeba, 0x4937, {0x83, 0x19}, {0xb5,0xdb,0xef,0x9c,0xcc,0x36} },
    4644  1
    4745};
    4846
    49 const struct ndr_syntax_id null_ndr_syntax_id = {
     47const struct ndr_syntax_id ndr_syntax_id_null = {
    5048  { 0, 0, 0, { 0, 0 }, { 0, 0, 0, 0, 0, 0 } },
    5149  0
     
    225223        ndr->data = talloc_array(ndr, uint8_t, ndr->alloc_size);
    226224        if (!ndr->data) {
     225                talloc_free(ndr);
    227226                return NULL;
    228227        }
     
    638637                NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &content_size));
    639638                if (size_is >= 0 && size_is != content_size) {
    640                         return ndr_pull_error(ndr, NDR_ERR_SUBCONTEXT, "Bad subcontext (PULL) size_is(%d) mismatch content_size %d",
    641                                                 (int)size_is, (int)content_size);
     639                        return ndr_pull_error(ndr, NDR_ERR_SUBCONTEXT, "Bad subcontext (PULL) size_is(%d) (0x%04x) mismatch content_size %d (0x%04x)",
     640                                                (int)size_is, (int)size_is,
     641                                                (int)content_size,
     642                                                (int)content_size);
    642643                }
    643644                r_content_size = content_size;
     
    649650                NDR_CHECK(ndr_pull_uint3264(ndr, NDR_SCALARS, &content_size));
    650651                if (size_is >= 0 && size_is != content_size) {
    651                         return ndr_pull_error(ndr, NDR_ERR_SUBCONTEXT, "Bad subcontext (PULL) size_is(%d) mismatch content_size %d",
    652                                                 (int)size_is, (int)content_size);
     652                        return ndr_pull_error(ndr, NDR_ERR_SUBCONTEXT, "Bad subcontext (PULL) size_is(%d) (0x%08x) mismatch content_size %d (0x%08x)",
     653                                                (int)size_is, (int)size_is,
     654                                                (int)content_size,
     655                                                (int)content_size);
    653656                }
    654657                r_content_size = content_size;
Note: See TracChangeset for help on using the changeset viewer.