libasyncio: (tomj) fix uninitialized vars, added little safety against zombie filters
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 18 Nov 2008 08:45:19 +0000 (08:45 +0000)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 18 Nov 2008 08:45:19 +0000 (08:45 +0000)
asyncio/async_io.hpp
asyncio/async_socket.cpp

index f86f7b5..0ee1e40 100644 (file)
@@ -122,7 +122,7 @@ class FilterBase
         typedef boost::shared_ptr< FilterBase > PtrType;
     public:
         FilterBase();
-        virtual ~FilterBase() {};
+        virtual ~FilterBase() { m_io = NULL; };
 
     protected:
 
index b4bb193..468ceb3 100644 (file)
@@ -177,6 +177,9 @@ IOImplementationPtr ServerSocketBaseImplementation::acceptNewConnection(
 
 
 UnixIOSocket::UnixIOSocket()
+: m_peer_pid(0)
+, m_peer_uid(0)
+, m_peer_gid(0)
 {
 } // eo UnixIOSocket::UnixIOSocket()