summaryrefslogtreecommitdiff
path: root/source3/librpc/ndr/sid.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-03-24 18:14:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:52 -0500
commiteca13022ef78237f915c8fec1ecbe676b1c86ae3 (patch)
tree8b317d905b3c1496277f4ada32fbcf1251cffebb /source3/librpc/ndr/sid.c
parent643157ff5ac13b15a4b501b00ffdca5fced0e7e9 (diff)
downloadsamba-eca13022ef78237f915c8fec1ecbe676b1c86ae3.tar.gz
samba-eca13022ef78237f915c8fec1ecbe676b1c86ae3.tar.bz2
samba-eca13022ef78237f915c8fec1ecbe676b1c86ae3.zip
r21960: Fix bugs 4463,4464,4465,4466. Thanks Jason :-)
(This used to be commit a2e27c443101a59ef3429a55e049af3ebd5ec1f2)
Diffstat (limited to 'source3/librpc/ndr/sid.c')
-rw-r--r--source3/librpc/ndr/sid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/librpc/ndr/sid.c b/source3/librpc/ndr/sid.c
index 0a9ddb883b..61790b3630 100644
--- a/source3/librpc/ndr/sid.c
+++ b/source3/librpc/ndr/sid.c
@@ -211,7 +211,7 @@ NTSTATUS ndr_pull_sec_desc_buf(struct ndr_pull *ndr, int ndr_flags, struct sec_d
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) { /* sd_size is unsigned */
return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
}
NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_sd));