summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-11-16 18:37:06 +0000
committerjsing <jsing@openbsd.org>2020-11-16 18:37:06 +0000
commit00349993d5110f1cb320adcfb59c64d11e261fab (patch)
tree5af47624926e8abe49ba69bf5aed89be4b17924f /lib/libssl/ssl_lib.c
parentReenable ikev2_init_auth() return value check. Make sure sa_stateok() (diff)
downloadwireguard-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/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions