2
0
Fork 0

fix wrong parameter con instead of new vr in network.c when USE_SENDFILE not defined

personal/stbuehler/wip
Thomas Porzelt 2008-11-20 00:16:57 +01:00
parent 0994052566
commit 2df4d9686b
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ network_status_t network_write(vrequest *vr, int fd, chunkqueue *cq) {
#ifdef USE_SENDFILE
res = network_write_sendfile(vr, fd, cq, &write_bytes);
#else
res = network_write_writev(con, fd, cq, &write_bytes);
res = network_write_writev(vr, fd, cq, &write_bytes);
#endif
wrote = write_max - write_bytes;
if (wrote > 0 && res == NETWORK_STATUS_WAIT_FOR_EVENT) res = NETWORK_STATUS_SUCCESS;