From 8106f8c5a6e1e47ccbe64ef88521dc335f70ceec Mon Sep 17 00:00:00 2001 From: leitner Date: Wed, 23 Apr 2014 11:54:24 +0000 Subject: [PATCH] remove superfluous &0x7f --- scan/scan_asn1derlength.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan/scan_asn1derlength.c b/scan/scan_asn1derlength.c index 60c604a..2e51449 100644 --- a/scan/scan_asn1derlength.c +++ b/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. */