Skip to content

Destroy query in killoldestclient under a lock

Witold Krecicki requested to merge 1650-fix-race-in-killoldestclient into master

Fixes a race between ns_client_killoldestquery and ns_client_endrequest - killoldestquery takes a client from recursing list while endrequest destroys client object, then killoldestquery works on a destroyed client object. Prevent it by holding reclist lock while cancelling query.

Closes #1650 (closed)

Merge request reports