Skip to content

Commit 5059b88

Browse files
author
Youness Alaoui
committed
Fix reception of msnp2p data from WLM 2009 users. Control flag check was too restrictive.. Thanks to Nicolò Chieffo for reporting it
1 parent 81e591b commit 5059b88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

papyon/msnp2p/transport/TLP.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ class TLPFlag(object):
102102
ERR = 0x80
103103
KEY = 0x100
104104
CRYPT = 0x200
105+
UNKNOWN = 0x1000000
105106

106107

107108
class MessageChunk(object):
@@ -114,7 +115,7 @@ def __str__(self):
114115
return str(self.header) + str(self.body)
115116

116117
def is_control_chunk(self):
117-
return self.header.flags & 0xFFFFFFCF
118+
return self.header.flags & 0xCF
118119

119120
def is_ack_chunk(self):
120121
return self.header.flags & (TLPFlag.NAK | TLPFlag.ACK)

0 commit comments

Comments
 (0)