Merge pull request #66 from moyamo/master
Prevent python plugin from crashing with InvalidWireType exception
This commit is contained in:
commit
43d2022093
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue