summaryrefslogtreecommitdiff
path: root/lib/libssl/tls13_key_schedule.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2020-11-16 18:37:07 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2020-11-16 18:37:07 +0000
commit2ae9b8cb5f4c03f7565afea3d2909c3572b4746f (patch)
tree84fbf8e4d58e944cb8221822e7f471cbb8da4153 /lib/libssl/tls13_key_schedule.c
parent4b2d38bf6dc91261e0c92cf68fa00f1357ebef3b (diff)
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