New commits:
commit 3616425a526ae810c03c9dcbc16905abc185a48b
Author: Andrew Cagney <[email protected]>
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 <[email protected]>
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.
_______________________________________________
Swan-commit mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-commit