mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +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;
|
*length=0;
|
||||||
switch(buffer[offset]) {
|
switch(buffer[offset]) {
|
||||||
case 0xff:
|
case 0xff:
|
||||||
offset-=4;
|
offset-=2;
|
||||||
int i;
|
int i;
|
||||||
for(i=0;i<16;i+=8) (*length)|=buffer[offset++]<<i;
|
for(i=0;i<16;i+=8) (*length)|=buffer[offset++]<<i;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user