Skip to content

Commit

Permalink
Merge pull request #49 from TomHirst1984/master
Browse files Browse the repository at this point in the history
bug fixes for default case in the LocalFromBER function
  • Loading branch information
YuryStrozhevsky authored Apr 23, 2020
2 parents 96a3170 + 2dce1ab commit 5c64632
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/asn1.js
Original file line number Diff line number Diff line change
Expand Up @@ -5301,7 +5301,7 @@ function LocalFromBER(inputBuffer, inputOffset, inputLength)
//region Initial checks
if(intBuffer.length === 0)
{
this.error = "Zero buffer length";
returnObject.error = "Zero buffer length";
return {
offset: (-1),
result: returnObject
Expand Down Expand Up @@ -5560,8 +5560,6 @@ function LocalFromBER(inputBuffer, inputOffset, inputLength)
newObject.warnings = returnObject.warnings;

returnObject = newObject;

resultOffset = returnObject.fromBER(inputBuffer, inputOffset, inputLength);
}
//endregion
}
Expand Down

0 comments on commit 5c64632

Please sign in to comment.