s4:libcli: use talloc_zero() for struct smb_composite_connect in fetchfile.c
authorStefan Metzmacher <metze@samba.org>
Wed, 18 Jul 2018 13:01:50 +0000 (15:01 +0200)
committerAlexander Bokovoy <ab@samba.org>
Tue, 24 Jul 2018 04:55:23 +0000 (06:55 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13308

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/libcli/smb_composite/fetchfile.c

index d19c86a8d05b3aa5c4d9bb1c6422fb5484a7e8f5..dc6f71b452e2262512102bac405b9af0bcceabc5 100644 (file)
@@ -131,7 +131,7 @@ struct composite_context *smb_composite_fetchfile_send(struct smb_composite_fetc
        state = talloc(c, struct fetchfile_state);
        if (state == NULL) goto failed;
 
-       state->connect = talloc(state, struct smb_composite_connect);
+       state->connect = talloc_zero(state, struct smb_composite_connect);
        if (state->connect == NULL) goto failed;
 
        state->io = io;