summaryrefslogtreecommitdiff
path: root/source4/client
diff options
context:
space:
mode:
Diffstat (limited to 'source4/client')
-rw-r--r--source4/client/cifsdd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/client/cifsdd.c b/source4/client/cifsdd.c
index eda25f904d..0ebaa9e378 100644
--- a/source4/client/cifsdd.c
+++ b/source4/client/cifsdd.c
@@ -498,7 +498,8 @@ static int copy_files(void)
* at least obs bytes in the IO buffer but might not if the
* file is too small.
*/
- if (!dd_flush_block(ofile, iobuf, &data_size, obs)) {
+ if (data_size &&
+ !dd_flush_block(ofile, iobuf, &data_size, obs)) {
return(IOERROR_EXIT_CODE);
}
}