aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/asn1/asn1_obj.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/asn1/asn1_obj.cpp b/src/lib/asn1/asn1_obj.cpp
index e258cd809..7bf2d92ca 100644
--- a/src/lib/asn1/asn1_obj.cpp
+++ b/src/lib/asn1/asn1_obj.cpp
@@ -57,7 +57,7 @@ bool maybe_BER(DataSource& source)
byte first_byte;
if(!source.peek_byte(first_byte))
{
- source.read_byte(first_byte); // force EOF
+ BOTAN_ASSERT_EQUAL(source.read_byte(first_byte), 0, "Expected EOF");
throw Stream_IO_Error("ASN1::maybe_BER: Source was empty");
}