librpc: Re-run make idl_full
authorTim Prouty <tprouty@samba.org>
Thu, 15 Jan 2009 18:59:49 +0000 (10:59 -0800)
committerTim Prouty <tprouty@samba.org>
Thu, 15 Jan 2009 22:53:10 +0000 (14:53 -0800)
librpc/gen_ndr/eventlog.h
librpc/gen_ndr/ndr_eventlog.c

index 9c9a2ed2185812a0f22d58a361f4d566ed525699..65178d203c9675c0be6a42298ae2efd18671a492 100644 (file)
@@ -47,7 +47,7 @@ struct eventlog_Record {
        time_t time_written;
        uint32_t event_id;
        enum eventlogEventTypes event_type;
-       uint16_t num_of_strings;/* [range(0,256)] */
+       uint16_t num_of_strings;/* [max(256)] */
        uint16_t event_category;
        uint16_t reserved_flags;
        uint32_t closing_record_number;
index 9b64deb58fb900492e58ec9de5f0802c71311b67..edcdf2e3f498c31657737d7043c951b6c9b9d512 100644 (file)
@@ -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));