summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-29 01:55:09 +0200
committerGünther Deschner <gd@samba.org>2009-04-29 01:59:03 +0200
commit67ca76c288eb095ae59e98927317d51c96c89551 (patch)
tree97c051cfcb9b56e95594ec736c363bbc35f09c45 /librpc
parenta23fb4663df11b237e94683510d282c286bbeed6 (diff)
downloadsamba-67ca76c288eb095ae59e98927317d51c96c89551.tar.gz
samba-67ca76c288eb095ae59e98927317d51c96c89551.tar.bz2
samba-67ca76c288eb095ae59e98927317d51c96c89551.zip
samr: fix samr_ConnectVersion enum which is 32bit not 16bit.
Volker, please check. Rafal, haven't we seen this in your tests at sambaxp as well ? Guenther
Diffstat (limited to 'librpc')
-rw-r--r--librpc/gen_ndr/ndr_samr.c6
-rw-r--r--librpc/idl/samr.idl2
2 files changed, 4 insertions, 4 deletions
diff --git a/librpc/gen_ndr/ndr_samr.c b/librpc/gen_ndr/ndr_samr.c
index d2d345a66a..ab76f5af28 100644
--- a/librpc/gen_ndr/ndr_samr.c
+++ b/librpc/gen_ndr/ndr_samr.c
@@ -4508,14 +4508,14 @@ _PUBLIC_ void ndr_print_samr_PwInfo(struct ndr_print *ndr, const char *name, con
static enum ndr_err_code ndr_push_samr_ConnectVersion(struct ndr_push *ndr, int ndr_flags, enum samr_ConnectVersion r)
{
- NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
return NDR_ERR_SUCCESS;
}
static enum ndr_err_code ndr_pull_samr_ConnectVersion(struct ndr_pull *ndr, int ndr_flags, enum samr_ConnectVersion *r)
{
- uint16_t v;
- NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &v));
+ uint32_t v;
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
*r = v;
return NDR_ERR_SUCCESS;
}
diff --git a/librpc/idl/samr.idl b/librpc/idl/samr.idl
index 06bdf180ac..17d8135d8d 100644
--- a/librpc/idl/samr.idl
+++ b/librpc/idl/samr.idl
@@ -1387,7 +1387,7 @@ import "misc.idl", "lsa.idl", "security.idl";
/************************/
/* Function 0x3e */
- typedef enum {
+ typedef [v1_enum] enum {
SAMR_CONNECT_PRE_W2K = 1,
SAMR_CONNECT_W2K = 2,
SAMR_CONNECT_AFTER_W2K = 3