Backported 026e9996d369a34966bd7ec33ebc41de2caf94e7
This commit is contained in:
parent
32cb59df28
commit
6bd5070b1f
@ -63,7 +63,7 @@ int ber_write_length(STREAM* s, int length)
|
||||
|
||||
int _ber_skip_length(int length)
|
||||
{
|
||||
if (length > 0x7F)
|
||||
if (length > 0x80)
|
||||
return 3;
|
||||
else
|
||||
return 1;
|
||||
@ -71,7 +71,7 @@ int _ber_skip_length(int length)
|
||||
|
||||
int ber_get_content_length(int length)
|
||||
{
|
||||
if (length - 1 > 0x7F)
|
||||
if (length > 0x81)
|
||||
return length - 4;
|
||||
else
|
||||
return length - 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user