client: fix use-after-free for client timeout
authorJens Axboe <axboe@kernel.dk>
Fri, 1 Dec 2017 02:50:34 +0000 (19:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Dec 2017 02:50:34 +0000 (19:50 -0700)
commit1d4845069e0ed59c852fb38f9d17db65ddacd73b
tree380c3d87b9508b76fd87c01060126ea52664c580
parent65f655bc01502afc5bc0d1b790a176afc6c59e95
client: fix use-after-free for client timeout

We free the reply, but if it times out, we dereference it afterwards.
Store the opcode before calling into handle_cmd_timeout().

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