Skip to content

Commit

Permalink
fix: expectedLen == 0 should continue
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <junjiegao@microsoft.com>
  • Loading branch information
JeyJeyGao committed Aug 3, 2023
1 parent 2345740 commit b5d5131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/encoding/asn1/asn1.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func decode(r []byte) (value, error) {

// pop the constructued value
valueStack = valueStack[:stackLen-1]
break
continue
}

for v.expectedLen > 0 {
Expand Down

0 comments on commit b5d5131

Please sign in to comment.