Browse Source

remove superfluous &0x7f

master
Felix von Leitner 8 years ago
parent
commit
482fb6cba4
  1. 2
      scan/scan_asn1derlength.c

2
scan/scan_asn1derlength.c

@ -5,7 +5,7 @@ size_t scan_asn1derlengthvalue(const char* src,size_t len,unsigned long long* va
unsigned int i,c=*src;
unsigned long long l;
if ((c&0x80)==0) {
*value=c&0x7f;
*value=c;
return 1;
}
/* Highest bit set: lower 7 bits is the length of the length value in bytes. */

Loading…
Cancel
Save