commit | e55f8f307385e77ea561e7bbf9c76842ead9d7a3 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Mar 06 15:42:31 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Mar 06 15:42:31 2012 +0100 |
tree | c7f2bbde0d5a918171cd295a56044b88642b359e | |
parent | abcf4b754bd9c863ad1e0102c8ea11e86aff85b3 [diff] |
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>