diff options
-rw-r--r-- | source3/libsmb/clidgram.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c index fba009d427..1d3293c60f 100644 --- a/source3/libsmb/clidgram.c +++ b/source3/libsmb/clidgram.c @@ -301,8 +301,8 @@ bool receive_getdc_response(TALLOC_CTX *mem_ctx, if (**dc_name == '\\') *dc_name += 1; if (reply) { - *reply = talloc_memdup(mem_ctx, &r, - sizeof(struct nbt_ntlogon_packet)); + *reply = (struct nbt_ntlogon_packet *)talloc_memdup( + mem_ctx, &r, sizeof(struct nbt_ntlogon_packet)); if (!*reply) { return false; } |