aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_reader.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-29 18:20:13 +0000
committerlloyd <[email protected]>2011-12-29 18:20:13 +0000
commit97a274401167ea68b6284d6abb30351ee3243460 (patch)
tree4e6468351dc936fd97d3c61d196942c9faf661ae /src/tls/tls_reader.h
parentb500ef1a58f977f5ce5869e7160615f7b44876e7 (diff)
About half an implementation of RFC 5746
Diffstat (limited to 'src/tls/tls_reader.h')
-rw-r--r--src/tls/tls_reader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tls/tls_reader.h b/src/tls/tls_reader.h
index 9f40bb457..bc2dffb58 100644
--- a/src/tls/tls_reader.h
+++ b/src/tls/tls_reader.h
@@ -29,7 +29,10 @@ class TLS_Data_Reader
~TLS_Data_Reader()
{
if(has_remaining())
+ {
+ abort();
throw Decoding_Error("Extra bytes at end of message");
+ }
}
size_t remaining_bytes() const