diff options
Diffstat (limited to 'src/tls/tls_reader.h')
-rw-r--r-- | src/tls/tls_reader.h | 3 |
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 |