[Swan-commit] Changes to ref refs/heads/main
Andrew Cagney
cagney at vault.libreswan.fi
Thu Aug 12 20:58:42 UTC 2021
New commits:
commit 3616425a526ae810c03c9dcbc16905abc185a48b
Author: Andrew Cagney <cagney at gnu.org>
Date: Thu Aug 12 16:40:22 2021 -0400
connections: in delete_every_connection() delete new-to-old
Use prev_connection() to iterate over connections new-to-old when
deleting (presumably a connection instance is newer than its
template and will be deleted first).
Note: this function goes from O(connections) to (O(connections)^2)/2.
Fortunately that only happens during shutdown. The problem is
the single-linked-list CONNECTIONS, and that needs deleting.
Fix #491 delete all connections during shutdown triggers use after free
commit f3df1baaa7e84bd0f1894db514adac1fb44370ed
Author: Andrew Cagney <cagney at gnu.org>
Date: Thu Aug 12 16:40:22 2021 -0400
connections: add {next,prev}_connection()
For iterating over connections.
Deleting the current connection mid-loop is allowed.
Also update next_state() so it's interface is similar.
More information about the Swan-commit
mailing list