]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/smbd: use struct initializer for smbd_smb2_create_state
authorRalph Boehme <slow@samba.org>
Thu, 20 Jul 2017 04:49:46 +0000 (06:49 +0200)
committerRalph Boehme <slow@samba.org>
Sat, 21 Oct 2017 12:00:10 +0000 (14:00 +0200)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/smb2_create.c

index c4fe2477bad8231764aa348cfc5059151de70ac3..c3667a6ecc11932d24e4684cbf49fc3f82aa712a 100644 (file)
@@ -487,7 +487,9 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
        if (req == NULL) {
                return NULL;
        }
-       state->smb2req = smb2req;
+       *state = (struct smbd_smb2_create_state) {
+               .smb2req = smb2req,
+       };
 
        smb1req = smbd_smb2_fake_smb_request(smb2req);
        if (tevent_req_nomem(smb1req, req)) {