asn1/tasn_utl.c: fix logical error in and overhaul asn1_do_lock.
CRYPTO_atomic_add was assumed to return negative value on error, while
it returns 0.
Reviewed-by:
Rich Salz <rsalz@openssl.org>
Please register or sign in to comment
CRYPTO_atomic_add was assumed to return negative value on error, while
it returns 0.
Reviewed-by:
Rich Salz <rsalz@openssl.org>