1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

s3:libsmb: only treat a return 0 as end of file

metze
This commit is contained in:
Stefan Metzmacher 2009-03-10 12:32:48 +01:00
parent 7fc8086e11
commit c2993f74af

View File

@ -971,10 +971,8 @@ static bool cli_push_write_setup(struct async_req *req,
substate->size = state->source(substate->buf,
state->chunk_size,
state->priv);
if (substate->size < state->chunk_size) {
state->eof = true;
}
if (substate->size == 0) {
state->eof = true;
/* nothing to send */
talloc_free(substate);
return true;
@ -1051,7 +1049,6 @@ struct async_req *cli_push_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
}
if (state->eof) {
state->num_reqs = i+1;
break;
}
}