Skip to content
Commit 933d1085 authored by Kurt Roeckx's avatar Kurt Roeckx
Browse files

Avoid using a dangling pointer when removing the last item



When it's the last item that is removed int_thread_hash == hash and we would
still call int_thread_release(&hash) while hash is already freed.  So
int_thread_release would compare that dangling pointer to NULL which is
undefined behaviour.  Instead do already what int_thread_release() would do,
and make the call do nothing instead.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>

RT: #4155, MR: #1519
parent c849c6d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment