]> git.ipfire.org Git - thirdparty/openssl.git/commit
Correct ossl_sleep for threaded model by introducing sleep().
authorRandall S. Becker <randall.becker@nexbridge.ca>
Mon, 25 Mar 2024 19:30:53 +0000 (19:30 +0000)
committerTomas Mraz <tomas@openssl.org>
Mon, 6 May 2024 08:49:42 +0000 (10:49 +0200)
commitc263b1fd692bd610b1a3879a9cdad74f3ffe321d
treef73ba02d831059f22f4691a731205a53da4af7be
parent8beb0e3cc976b42ae12284aa1fd3b3c8eeb2030c
Correct ossl_sleep for threaded model by introducing sleep().

This fix handles situations where ossl_sleep() receives a millis value equal
or greater than 1000, which breaks platforms where this is not legal. The
change also avoids unnecessarily calling sleep(0).

Fixes: #23961
Signed-off-by: Randall S. Becker <randall.becker@nexbridge.ca>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23972)
e_os.h