diff options
author | Volker Lendecke <vl@samba.org> | 2022-02-01 17:47:29 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-02-10 18:16:36 +0000 |
commit | f5bc73a2ad97647f76143f7962c964f45aa6b1a0 (patch) | |
tree | 2673b73dbf0b2c6efa1e3a2471605eb8fdd34106 /source3/smbd/smb2_create.c | |
parent | 363ac7533895fda786f56c4fe8346128753f38a5 (diff) | |
download | samba-f5bc73a2ad97647f76143f7962c964f45aa6b1a0.tar.gz |
smbd: NULL out "fsp" in close_file()
Quite a few places already had this in the caller, but not all. Rename
close_file() to close_file_free() appropriately. We'll factor out
close_file_smb() doing only parts of close_file_free() later.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/smb2_create.c')
-rw-r--r-- | source3/smbd/smb2_create.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index ad1ddc9a65e..932ec31a18a 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -915,7 +915,8 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, status = smbd_smb2_create_durable_lease_check( smb1req, state->fname, state->result, state->lease_ptr); if (!NT_STATUS_IS_OK(status)) { - close_file(smb1req, state->result, SHUTDOWN_CLOSE); + close_file_free( + smb1req, &state->result, SHUTDOWN_CLOSE); tevent_req_nterror(req, status); return tevent_req_post(req, state->ev); } |