diff options
-rw-r--r-- | src/modules/m_chanprotect.cpp | 4 | ||||
-rw-r--r-- | src/socketengine_epoll.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index d46d28faa..23924bd0a 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -289,10 +289,10 @@ class ModuleChanProtect : public Module public: - ModuleChanProtect(InspIRCd* Me) : Module::Module(Me) + ModuleChanProtect(InspIRCd* Me) + : Module::Module(Me), FirstInGetsFounder(false), QAPrefixes(false), DeprivSelf(false), booting(true) { /* Load config stuff */ - booting = true; OnRehash(""); booting = false; diff --git a/src/socketengine_epoll.cpp b/src/socketengine_epoll.cpp index 1f4f02548..06124a48c 100644 --- a/src/socketengine_epoll.cpp +++ b/src/socketengine_epoll.cpp @@ -155,6 +155,7 @@ int EPollEngine::DispatchEvents() if (events[j].events & EPOLLOUT) { struct epoll_event ev; + memset(&ev,0,sizeof(struct epoll_event)); ev.events = EPOLLIN; ev.data.fd = events[j].data.fd; int i = epoll_ctl(EngineHandle, EPOLL_CTL_MOD, events[j].data.fd, &ev); |