diff options
| author | 2006-12-11 18:23:15 +0000 | |
|---|---|---|
| committer | 2006-12-11 18:23:15 +0000 | |
| commit | f5bc7aa7ceaee27df4aa047f3b702619f15fa00c (patch) | |
| tree | 9483b5cc4c6441e445a1ae8c21ff9156a9c88e33 /src/socketengine_kqueue.cpp | |
| parent | Fix case insensitive compare (operator ==) between irc::string and std::strin... (diff) | |
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
Diffstat (limited to 'src/socketengine_kqueue.cpp')
| -rw-r--r-- | src/socketengine_kqueue.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
