Fix constant
This commit is contained in:
parent
750f9e3672
commit
6b69cee089
1 changed files with 2 additions and 2 deletions
|
@ -180,11 +180,11 @@ void Protocol::pollNetwork() {
|
|||
}
|
||||
u16 bodyLen;
|
||||
data >> bodyLen;
|
||||
if(data.size() < bodyLen + 64u) {
|
||||
if(data.size() < bodyLen + 8u) {
|
||||
fprintf(stderr, "[WARNING] Body too short\n");
|
||||
continue;
|
||||
}
|
||||
else if(data.size() != bodyLen + 64u) {
|
||||
else if(data.size() != bodyLen + 8u) {
|
||||
fprintf(stderr, "[WARNING] Body too long\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue