Skip to content

Commit c20f309

Browse files
committed
Adjust remaining length.
This is not strictly needed since the value isn't used after this point. However, when temporary debugging is added to the code it is helpful for this valud to be accurate. Adding it in to avoid future confusion.
1 parent e27f612 commit c20f309

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/asn1.js

+1
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ function _fromDer(bytes, remaining, depth, options) {
614614
}
615615
} else {
616616
value = bytes.getBytes(length);
617+
remaining -= length;
617618
}
618619
}
619620

0 commit comments

Comments
 (0)