diff options
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/ndr/ndr_drsuapi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/librpc/ndr/ndr_drsuapi.c b/librpc/ndr/ndr_drsuapi.c index 852153a7e6..f7125e6e55 100644 --- a/librpc/ndr/ndr_drsuapi.c +++ b/librpc/ndr/ndr_drsuapi.c @@ -101,7 +101,7 @@ static void _print_drsuapi_DsAttributeValue_attid(struct ndr_print *ndr, const c static void _print_drsuapi_DsAttributeValue_str(struct ndr_print *ndr, const char *name, const struct drsuapi_DsAttributeValue *r) { - char *str; + void *p; size_t converted_size = 0; ndr_print_struct(ndr, name, "drsuapi_DsAttributeValue"); @@ -110,9 +110,10 @@ static void _print_drsuapi_DsAttributeValue_str(struct ndr_print *ndr, const cha CH_UTF16, CH_UNIX, r->blob->data, r->blob->length, - (void **)&str, &converted_size)) { + &p, &converted_size)) { ndr_print_string(ndr, "string", "INVALID CONVERSION"); } else { + char *str = (char *)p; ndr_print_string(ndr, "string", str); talloc_free(str); } |