summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_transcript.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2020-02-05 10:21:17 +0000
committermpi <mpi@openbsd.org>2020-02-05 10:21:17 +0000
commit512ae95b9cd1132cc212ff4add8c89d2b92f7db4 (patch)
treee1c488fe12f7305b489327cd698dbbc883ddbc81 /lib/libssl/ssl_transcript.c
parentregen (diff)
downloadwireguard-openbsd-512ae95b9cd1132cc212ff4add8c89d2b92f7db4.tar.xz
wireguard-openbsd-512ae95b9cd1132cc212ff4add8c89d2b92f7db4.zip
Detach timeouts and the softint handler before freeing memory.
As more and more teardown functions include barriers, or any kind of context change, it is unsafe to continue to assume that such code paths are atomic. So a good practise is to only free descriptor when we're sure that no other context can access them. Found while looking at visa@'s ttkqflush() replacement diff. The same pattern is present in many USB drivers as found with Peter Stuge. ok visa@
Diffstat (limited to 'lib/libssl/ssl_transcript.c')
0 files changed, 0 insertions, 0 deletions