mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08: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