Skip to content

Commit

Permalink
Adjust remaining length.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
davidlehn committed Mar 17, 2022
1 parent e27f612 commit c20f309
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/asn1.js
Expand Up @@ -614,6 +614,7 @@ function _fromDer(bytes, remaining, depth, options) {
}
} else {
value = bytes.getBytes(length);
remaining -= length;
}
}

Expand Down

0 comments on commit c20f309

Please sign in to comment.