]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Avoid a duplicate memset(.., 0, ..);
authorVolker Lendecke <vl@samba.org>
Thu, 16 Feb 2023 11:26:16 +0000 (12:26 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 9 Mar 2023 18:10:33 +0000 (18:10 +0000)
tevent_req_create() does a talloc_zero() on "state" already

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clifile.c

index 13619c7420963bd2f69ec15d5b0b505ce4724aad..45c8c96a0364418e3f574b5f8ff9a9472c8135c4 100644 (file)
@@ -958,7 +958,6 @@ static struct tevent_req *cli_posix_chown_chmod_internal_send(TALLOC_CTX *mem_ct
        }
 
        memset(state->data, 0xff, 40); /* Set all sizes/times to no change. */
-       memset(&state->data[40], '\0', 60);
        SIVAL(state->data,40,uid);
        SIVAL(state->data,48,gid);
        SIVAL(state->data,84,mode);