Add client references
authorJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 14:42:31 +0000 (15:42 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 6 Mar 2012 14:42:31 +0000 (15:42 +0100)
commite55f8f307385e77ea561e7bbf9c76842ead9d7a3
treec7f2bbde0d5a918171cd295a56044b88642b359e
parentabcf4b754bd9c863ad1e0102c8ea11e86aff85b3
Add client references

We have a use-after-free in the fio_handle_clients() loop.
If we receive a QUIT command, we remove the client in
fio_handle_client(). But fio_handle_clients() doesn't
have a way to detect this, so it checks client->error
after it has potentially been freed.

Add a simple reference to get rid of this problem.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
client.c