diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-23 23:23:38 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-08-23 23:23:38 +0000 |
commit | 0c534fb50b464a580c9795f383697a340cfa206e (patch) | |
tree | 909f743d9352c31b334c5b60524abcdf23ddcf66 | |
parent | aee600bd4fd0a3d53d10f9f27a58ae72dad16511 (diff) |
Forward port r10234, thanks psychon
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10235 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/socketengines/socketengine_epoll.cpp | 2 | ||||
-rw-r--r-- | src/socketengines/socketengine_select.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/socketengines/socketengine_epoll.cpp b/src/socketengines/socketengine_epoll.cpp index 6b8954412..de06103fb 100644 --- a/src/socketengines/socketengine_epoll.cpp +++ b/src/socketengines/socketengine_epoll.cpp @@ -152,7 +152,7 @@ int EPollEngine::GetRemainingFds() int EPollEngine::DispatchEvents() { - socklen_t codesize; + socklen_t codesize = sizeof(int); int errcode; int i = epoll_wait(EngineHandle, events, GetMaxFds() - 1, 1000); diff --git a/src/socketengines/socketengine_select.cpp b/src/socketengines/socketengine_select.cpp index f053da6df..25e4c1491 100644 --- a/src/socketengines/socketengine_select.cpp +++ b/src/socketengines/socketengine_select.cpp @@ -92,7 +92,7 @@ int SelectEngine::DispatchEvents() { timeval tval; int sresult = 0; - socklen_t codesize; + socklen_t codesize = sizeof(int); int errcode = 0; FD_ZERO(&wfdset); |