summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net_rpc_trust.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_trust.c b/source3/utils/net_rpc_trust.c
index 654b0f158f..da0a7cca67 100644
--- a/source3/utils/net_rpc_trust.c
+++ b/source3/utils/net_rpc_trust.c
@@ -519,7 +519,9 @@ static int rpc_trust_common(struct net_context *net_ctx, int argc,
goto done;
}
- authinfo.auth_blob.data = talloc_memdup(mem_ctx, auth_blob.data,
+ authinfo.auth_blob.data = (uint8_t *)talloc_memdup(
+ mem_ctx,
+ auth_blob.data,
auth_blob.length);
if (authinfo.auth_blob.data == NULL) {
goto done;
@@ -544,7 +546,8 @@ static int rpc_trust_common(struct net_context *net_ctx, int argc,
if (other_net_ctx != NULL) {
talloc_free(authinfo.auth_blob.data);
- authinfo.auth_blob.data = talloc_memdup(mem_ctx,
+ authinfo.auth_blob.data = (uint8_t *)talloc_memdup(
+ mem_ctx,
auth_blob.data,
auth_blob.length);
if (authinfo.auth_blob.data == NULL) {