diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2019-05-15 10:54:33 +1200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-07-06 12:30:33 +0000 |
commit | e78db8a7ebd01afd3d3128c1221853827d35ab4b (patch) | |
tree | 40f019301806bdf0740c6928a2b6eb7aee40d237 /source4 | |
parent | 213a8d551dc416a137fec5f392925bbf9ebec55a (diff) | |
download | samba-e78db8a7ebd01afd3d3128c1221853827d35ab4b.tar.gz |
policy/gp: always close a file (CID 1445119)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/policy/gp_filesys.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/policy/gp_filesys.c b/source4/lib/policy/gp_filesys.c index 5a300f134fe..eaae5b79230 100644 --- a/source4/lib/policy/gp_filesys.c +++ b/source4/lib/policy/gp_filesys.c @@ -486,6 +486,7 @@ static NTSTATUS push_recursive (struct gp_context *gp_ctx, const char *local_pat DBG_ERR("read failed with errno %s\n", strerror(errno)); status = NT_STATUS_UNSUCCESSFUL; + close(local_fd); goto done; } smbcli_write(gp_ctx->cli->tree, remote_fd, 0, |