summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c
index f09c2f6530..672e438376 100644
--- a/source3/utils/smbget.c
+++ b/source3/utils/smbget.c
@@ -411,6 +411,7 @@ static int smb_download_file(const char *base, const char *name, int recursive,
fprintf(stderr, "Offset in local and remote files is different (local: "OFF_T_FORMAT", remote: "OFF_T_FORMAT")\n",
(OFF_T_FORMAT_CAST)off1,
(OFF_T_FORMAT_CAST)off2);
+ smbc_close(remotehandle); close(localhandle);
return 1;
}