]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 13 Aug 2018 10:56:33 +0000 (12:56 +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>
(cherry picked from commit 87d73397f9a9dee8fa0055a2ff08244b2c85e120)

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;