driver/goodbye: fix replying to outstanding methods on disconnect
Reply not to our owned reply objects, but to the ones installed on us.
@@ -1579,7 +1579,7 @@ int driver_goodbye(Peer *peer, bool silent) {
}
peer_unregister(peer);
- c_list_for_each_entry_safe(reply, reply_safe, &peer->owned_replies.reply_list, owner_link) {
+ c_rbtree_for_each_entry_unlink(reply, reply_safe, &peer->replies_outgoing.reply_tree, registry_node) {
Peer *sender = c_container_of(reply->owner, Peer, owned_replies);
if (!silent) {
