1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib: Fix CID 1465285 Double close

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2022-01-19 14:12:23 +01:00 committed by Jeremy Allison
parent dcd65e1cb7
commit d717a581ab

View File

@ -487,6 +487,7 @@ static NTSTATUS push_recursive (struct gp_context *gp_ctx, const char *local_pat
strerror(errno));
status = NT_STATUS_UNSUCCESSFUL;
close(local_fd);
local_fd = -1;
goto done;
}
smbcli_write(gp_ctx->cli->tree, remote_fd, 0,