Changeset - 43d2022093fe
[Not reviewed]
Merge
0 1 0
vitalyster - 10 years ago 2015-10-10 17:11:20
vitalyster@gmail.com
Merge pull request #66 from moyamo/master

Prevent python plugin from crashing with InvalidWireType exception
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
plugin/python/NetworkPlugin.py
Show inline comments
 
@@ -319,7 +319,7 @@ class NetworkPlugin:
 
				return
 

	
 
			wrapper = protocol_pb2.WrapperMessage()
 
			if (wrapper.ParseFromString(self.m_data[4:]) == False):
 
			if (wrapper.ParseFromString(self.m_data[4:expected_size+4]) == False):
 
				self.m_data = self.m_data[expected_size+4:]
 
				return
 

	
0 comments (0 inline, 0 general)