connection: hold conn_reply ref on reply_wake
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 23 Oct 2014 12:01:03 +0000 (14:01 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 23 Oct 2014 12:01:03 +0000 (14:01 +0200)
commit3b3c0413ac3850c9c28ebecd406d0471169d64a5
treef430c29943424da2952472b7f6fc6d8294d2c703
parent81e9805cd01c95fa6ed9aeff338de2b856add414
connection: hold conn_reply ref on reply_wake

We pass reply_wake around without holding any locks. It might get
destructed by parallel timeouts of other replies that are faster than we
are. Make sure we hold a reference to avoid those races.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
connection.c