summaryrefslogtreecommitdiff
path: root/librpc/gen_ndr/ndr_eventlog.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-01-15 10:59:49 -0800
committerTim Prouty <tprouty@samba.org>2009-01-15 14:53:10 -0800
commitefc487b80a28caa63c54d6dfd12580636e356dd8 (patch)
tree73179b39949a99345d0dc83d75892f4ab2d4cf06 /librpc/gen_ndr/ndr_eventlog.c
parentc59ec17dddfa98f44baf6a3195b6ebf5cad8f016 (diff)
downloadsamba-efc487b80a28caa63c54d6dfd12580636e356dd8.tar.gz
samba-efc487b80a28caa63c54d6dfd12580636e356dd8.tar.bz2
samba-efc487b80a28caa63c54d6dfd12580636e356dd8.zip
librpc: Re-run make idl_full
Diffstat (limited to 'librpc/gen_ndr/ndr_eventlog.c')
-rw-r--r--librpc/gen_ndr/ndr_eventlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/gen_ndr/ndr_eventlog.c b/librpc/gen_ndr/ndr_eventlog.c
index 9b64deb58f..edcdf2e3f4 100644
--- a/librpc/gen_ndr/ndr_eventlog.c
+++ b/librpc/gen_ndr/ndr_eventlog.c
@@ -180,7 +180,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_eventlog_Record(struct ndr_pull *ndr, int nd
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->event_id));
NDR_CHECK(ndr_pull_eventlogEventTypes(ndr, NDR_SCALARS, &r->event_type));
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->num_of_strings));
- if (r->num_of_strings < 0 || r->num_of_strings > 256) {
+ if (r->num_of_strings > 256) {
return ndr_pull_error(ndr, NDR_ERR_RANGE, "value out of range");
}
NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->event_category));