diff options
author | Tim Prouty <tprouty@samba.org> | 2009-01-17 15:19:08 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-01-17 19:38:21 -0800 |
commit | 44ae09b82e509db390ad4e884ae3310a3508cf46 (patch) | |
tree | 056c384be46ba79df94b0e27f5e9a392396408ae /librpc/gen_ndr/ndr_security.c | |
parent | 4a40857836ef2678d2e55c2b1cc9745b88812c4e (diff) | |
download | samba-44ae09b82e509db390ad4e884ae3310a3508cf46.tar.gz samba-44ae09b82e509db390ad4e884ae3310a3508cf46.tar.bz2 samba-44ae09b82e509db390ad4e884ae3310a3508cf46.zip |
librpc: Re-run make idl_full
Diffstat (limited to 'librpc/gen_ndr/ndr_security.c')
-rw-r--r-- | librpc/gen_ndr/ndr_security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/librpc/gen_ndr/ndr_security.c b/librpc/gen_ndr/ndr_security.c index 64c134dcb8..c227170779 100644 --- a/librpc/gen_ndr/ndr_security.c +++ b/librpc/gen_ndr/ndr_security.c @@ -498,7 +498,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_security_acl(struct ndr_pull *ndr, int ndr_f NDR_CHECK(ndr_pull_security_acl_revision(ndr, NDR_SCALARS, &r->revision)); NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->size)); NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_aces)); - if (r->num_aces < 0 || r->num_aces > 1000) { + if (r->num_aces > 1000) { return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range"); } NDR_PULL_ALLOC_N(ndr, r->aces, r->num_aces); @@ -797,7 +797,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_sec_desc_buf(struct ndr_pull *ndr, int ndr_f if (ndr_flags & NDR_SCALARS) { NDR_CHECK(ndr_pull_align(ndr, 4)); NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sd_size)); - if (r->sd_size < 0 || r->sd_size > 0x40000) { + if (r->sd_size > 0x40000) { return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range"); } NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sd)); |