mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-21 06:03:12 +00:00
fix bug in parsing reverse block length fields.
This commit is contained in:
parent
a66f5eb701
commit
29d23e7dd4
@ -125,7 +125,7 @@ int decode_length_backwards(unsigned char *buffer,int offset,
|
||||
*length=0;
|
||||
switch(buffer[offset]) {
|
||||
case 0xff:
|
||||
offset-=4;
|
||||
offset-=2;
|
||||
int i;
|
||||
for(i=0;i<16;i+=8) (*length)|=buffer[offset++]<<i;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user