Skip to content

Commit 446ba00

Browse files
committed
fixed bug in Asn1BitString.GetValue() which returns unused bit byte
1 parent 150d77a commit 446ba00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Asn1Parser/Universal/Asn1BitString.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public override String GetDisplayValue() {
8989
/// </summary>
9090
/// <returns>BIT_STRING value.</returns>
9191
public ReadOnlyMemory<Byte> GetValue() {
92-
return GetInternalReader().GetPayloadAsMemory();
92+
return GetInternalReader().GetPayloadAsMemory().Slice(1);
9393
}
9494

9595
/// <summary>

0 commit comments

Comments
 (0)