summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/dsgetdcname.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index 3d8d57d157..90e6d49274 100644
--- a/source3/libsmb/dsgetdcname.c
+++ b/source3/libsmb/dsgetdcname.c
@@ -235,7 +235,8 @@ static NTSTATUS unpack_dsdcinfo(TALLOC_CTX *mem_ctx,
memcpy(&guid_flat.info, guid_buf, guid_len);
smb_uuid_unpack(guid_flat, &guid);
- info->domain_guid = talloc_memdup(mem_ctx, &guid, sizeof(guid));
+ info->domain_guid = (struct GUID *)talloc_memdup(
+ mem_ctx, &guid, sizeof(guid));
if (!info->domain_guid) {
goto failed;
}
@@ -694,8 +695,8 @@ static NTSTATUS make_domain_controller_info(TALLOC_CTX *mem_ctx,
info->domain_controller_address_type = domain_controller_address_type;
if (domain_guid) {
- info->domain_guid = talloc_memdup(mem_ctx, domain_guid,
- sizeof(*domain_guid));
+ info->domain_guid = (struct GUID *)talloc_memdup(
+ mem_ctx, domain_guid, sizeof(*domain_guid));
NT_STATUS_HAVE_NO_MEMORY(info->domain_guid);
}