Fix a C++ warning
authorVolker Lendecke <vl@samba.org>
Mon, 5 May 2008 15:24:17 +0000 (17:24 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 5 May 2008 16:28:59 +0000 (18:28 +0200)
source/libsmb/clidgram.c

index fba009d4278283c547b1801096602f8e91a00967..1d3293c60f0d6ba84eb8a7e4ff94ff1685a9a8c7 100644 (file)
@@ -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;
                }