diff --git a/src/network/connection.h b/src/network/connection.h
index f60c6625702b5229dafc0828a5fdf5f30ef29bf9..556a40a1260f0790580e1b1b2c866ea9fe020601 100644
--- a/src/network/connection.h
+++ b/src/network/connection.h
@@ -865,7 +865,8 @@ struct ConnectionEvent
 	bool timeout;
 	Address address;
 
-	ConnectionEvent(): type(CONNEVENT_NONE) {}
+	ConnectionEvent(): type(CONNEVENT_NONE), peer_id(0),
+			timeout(false) {}
 
 	std::string describe()
 	{