diff options
author | 2020-11-16 18:37:06 +0000 | |
---|---|---|
committer | 2020-11-16 18:37:06 +0000 | |
commit | 00349993d5110f1cb320adcfb59c64d11e261fab (patch) | |
tree | 5af47624926e8abe49ba69bf5aed89be4b17924f /lib/libssl/tls13_key_schedule.c | |
parent | Reenable ikev2_init_auth() return value check. Make sure sa_stateok() (diff) | |
download | wireguard-openbsd-00349993d5110f1cb320adcfb59c64d11e261fab.tar.xz wireguard-openbsd-00349993d5110f1cb320adcfb59c64d11e261fab.zip |
Prevent exit status from being clobbered on thread exit.
Ensure that EXIT_NORMAL only runs once by guarding it with PS_EXITING.
It was previously possible for EXIT_NORMAL to be run twice, depending on
which thread called exit() and the order in which the threads were torn
down. This is due to the P_HASSIBLING() check triggering the last thread
to run EXIT_NORMAL, even though it may have already been run via an exit()
call.
ok kettenis@ visa@
Diffstat (limited to 'lib/libssl/tls13_key_schedule.c')
0 files changed, 0 insertions, 0 deletions