From f5bc7aa7ceaee27df4aa047f3b702619f15fa00c Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 11 Dec 2006 18:23:15 +0000 Subject: Untested, new clever pointer voodoo class for binary-safe ziplinks output buffers PLUS: Fix for random epoll dispatchevents crashes. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5926 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine_kqueue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/socketengine_kqueue.cpp') diff --git a/src/socketengine_kqueue.cpp b/src/socketengine_kqueue.cpp index cad88d393..ed26faa27 100644 --- a/src/socketengine_kqueue.cpp +++ b/src/socketengine_kqueue.cpp @@ -150,7 +150,8 @@ int KQueueEngine::DispatchEvents() * Unlike smelly epoll and select, where we have to getsockopt * to get the error, this saves us time and cpu cycles. Go BSD! */ - ref[ke_list[j].ident]->HandleEvent(EVENT_ERROR, ke_list[j].fflags); + if (ref[ke_list[j].ident]) + ref[ke_list[j].ident]->HandleEvent(EVENT_ERROR, ke_list[j].fflags); continue; } if (ke_list[j].flags & EVFILT_WRITE) -- cgit v1.3.1-10-gc9f91