]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/worker: fix connection teardown in tls_hs_cb()
authorTomas Krizek <tomas.krizek@nic.cz>
Fri, 4 Sep 2020 10:47:54 +0000 (12:47 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Wed, 23 Sep 2020 10:08:18 +0000 (12:08 +0200)
commitf705d23c732c32e01721ad23568b65da44adf1b4
treefa497c770374018e43417dc075f9359fc8fe5bae
parent8ad2db6e4af6b2537be3e4e2ec7d12a5943c614a
daemon/worker: fix connection teardown in tls_hs_cb()

Ensure both tasklist and waitinglist is always cleared when tearing down
connection (otherwise the session close will fail on assert).

The previous assert could be triggered when the while loop in the code
above would successfuly perform qr_task_send() for one of the
tasks in waitinglist and then fail on a subsequent one.
daemon/worker.c