]> granicus.if.org Git - libevent/commit
event_base_once: fix potential null pointer threat
authorchenguolong <cgl.chenguolong@huawei.com>
Tue, 4 Feb 2020 08:05:02 +0000 (16:05 +0800)
committerAzat Khuzhin <azat@libevent.org>
Sat, 15 Feb 2020 23:54:15 +0000 (02:54 +0300)
commit968bbd5c918568eb95b493af05c464ddfc36671b
tree0c4c4d07b1ac89f5b4d6e5b0073ec97454868681
parent5fbe6313ae7e81cde3e056b29171a6346c54aa0b
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>
event.c