Add client references
authorJens Axboe <axboe@kernel.dk>
Mon, 5 Mar 2012 12:32:47 +0000 (13:32 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Mar 2012 12:32:47 +0000 (13:32 +0100)
commit5121a9aa0299a2c23b3c50bf110ab4a05677c740
tree2552471a98d5e1dccb6b78ca3759a0870f0ae6c5
parentb29ad56266faa33326de00e315d2b34b735fb028
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
client.h