mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-03 09:16:30 -04:00
event_base_once: fix potential null pointer threat
supposing if base is null, EVBASE_ACQUIRE_LOCK and EVBASE_RELEASE_LOCK would get a coredump, so we add a guard for protection. Signed-off-by: chenguolong <cgl.chenguolong@huawei.com> (cherry picked from commit 968bbd5c918568eb95b493af05c464ddfc36671b)
This commit is contained in:
parent
9e993c3cdb
commit
2e9ceb1655
Loading…
x
Reference in New Issue
Block a user