summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/epmapper.idl8
-rw-r--r--source4/librpc/ndr/ndr_basic.c3
2 files changed, 7 insertions, 4 deletions
diff --git a/source4/librpc/idl/epmapper.idl b/source4/librpc/idl/epmapper.idl
index 5c433dd2ca..172c83149b 100644
--- a/source4/librpc/idl/epmapper.idl
+++ b/source4/librpc/idl/epmapper.idl
@@ -30,7 +30,7 @@ interface epmapper
typedef [nodiscriminant] union {
[case(13)] epm_prot_uuid uuid;
- [default] ;
+ [default] [flag(NDR_REMAINING)] DATA_BLOB lhs_data;
} epm_protocol_info;
typedef struct {
@@ -39,7 +39,7 @@ interface epmapper
} epm_lhs;
typedef struct {
- [flag(NDR_REMAINING)] DATA_BLOB data;
+ [flag(NDR_REMAINING)] DATA_BLOB rhs_data;
} epm_rhs;
typedef struct {
@@ -47,10 +47,10 @@ interface epmapper
[subcontext(2)] epm_rhs rhs;
} epm_floor;
- /* not that the NDR_NOALIGN flag is inherited by all nested
+ /* note that the NDR_NOALIGN flag is inherited by all nested
structures. All of the towers/floors stuff is
non-aligned. I wonder what sort of wicked substance these
- guys were smoking?
+ guys were smoking?
*/
typedef [flag(NDR_NOALIGN)] struct {
uint16 num_floors;
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c
index a45771ef28..1f78bc17b6 100644
--- a/source4/librpc/ndr/ndr_basic.c
+++ b/source4/librpc/ndr/ndr_basic.c
@@ -782,6 +782,9 @@ void ndr_print_GUID(struct ndr_print *ndr, const char *name, const struct GUID *
void ndr_print_DATA_BLOB(struct ndr_print *ndr, const char *name, DATA_BLOB r)
{
ndr->print(ndr, "%-25s: DATA_BLOB length=%u", name, r.length);
+ if (r.length) {
+ dump_data(10, r.data, r.length);
+ }
}