summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/src/asn1/Asn1InputStream.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/Asn1InputStream.cs b/crypto/src/asn1/Asn1InputStream.cs
index bfa4615bd..04de3112e 100644
--- a/crypto/src/asn1/Asn1InputStream.cs
+++ b/crypto/src/asn1/Asn1InputStream.cs
@@ -163,8 +163,8 @@ namespace Org.BouncyCastle.Asn1
                 return null;
             }
 
-            int tagNo = ReadTagNumber(this, tagHdr);
-            int length = ReadLength(this, limit, false);
+            int tagNo = ReadTagNumber(s, tagHdr);
+            int length = ReadLength(s, limit, false);
 
             if (length >= 0)
             {