summaryrefslogtreecommitdiff
path: root/librpc/gen_ndr
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/gen_ndr
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/gen_ndr')
-rw-r--r--librpc/gen_ndr/ndr_samr.c6
1 files changed, 3 insertions, 3 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;
}