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;
}
if (state->eof) {
- state->num_reqs = i+1;
break;
}
}