s4:smbclient: correct initialize smbclient_context
authorStefan Metzmacher <metze@samba.org>
Wed, 7 Jan 2009 05:32:25 +0000 (06:32 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 7 Jan 2009 05:36:23 +0000 (06:36 +0100)
Found by valgrind.

metze

source4/client/client.c

index 13b7053396a4642d0b121966be0b9118bf76946b..018be297610cbf85e95851298702ffae358aa074 100644 (file)
@@ -3190,7 +3190,7 @@ static int do_message_op(const char *netbios_name, const char *desthost,
                exit(1);
        }
 
-       ctx = talloc(mem_ctx, struct smbclient_context);
+       ctx = talloc_zero(mem_ctx, struct smbclient_context);
        ctx->io_bufsize = 64512;
 
        pc = poptGetContext("smbclient", argc, (const char **) argv, long_options, 0);