The Samba-Bugzilla – Attachment 4105 Details for
Bug 6301
Connect4 in samr.idl broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 3.3 with signed-off
0001-3.3-samr-bug-6301-fix-samr_ConnectVersion-enum-whic.patch (text/plain), 1.72 KB, created by
Volker Lendecke
on 2009-05-03 03:09:02 UTC
(
hide
)
Description:
patch for 3.3 with signed-off
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2009-05-03 03:09:02 UTC
Size:
1.72 KB
patch
obsolete
>From 0d1601dc3ed7254390adaab971916cdebe1b82c2 Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?G=C3=BCnther=20Deschner?= <gd@samba.org> >Date: Wed, 29 Apr 2009 01:55:09 +0200 >Subject: [PATCH] 3.3 samr bug 6301: fix samr_ConnectVersion enum which is 32bit not 16bit. > >Port of 67ca76c288eb095ae to 3.3 > >Signed-off-by: Volker Lendecke <vl@samba.org> >--- > source/librpc/gen_ndr/ndr_samr.c | 6 +++--- > source/librpc/idl/samr.idl | 2 +- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/source/librpc/gen_ndr/ndr_samr.c b/source/librpc/gen_ndr/ndr_samr.c >index c82078f..ae3605b 100644 >--- a/source/librpc/gen_ndr/ndr_samr.c >+++ b/source/librpc/gen_ndr/ndr_samr.c >@@ -4430,14 +4430,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/source/librpc/idl/samr.idl b/source/librpc/idl/samr.idl >index 9e933a5..4a36ae1 100644 >--- a/source/librpc/idl/samr.idl >+++ b/source/librpc/idl/samr.idl >@@ -1370,7 +1370,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 >-- >1.5.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6301
:
4095
|
4096
|
4104
| 4105