From cf2c77581d44ba39909d8cdb0f7b41cac99bb76c Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 24 Jan 2012 13:52:04 +0000 Subject: Convert Internal_Error exceptions into the cooresponding alert. --- src/tls/tls_channel.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tls/tls_channel.cpp') diff --git a/src/tls/tls_channel.cpp b/src/tls/tls_channel.cpp index 76a5424ad..801dfdfe3 100644 --- a/src/tls/tls_channel.cpp +++ b/src/tls/tls_channel.cpp @@ -122,6 +122,11 @@ size_t Channel::received_data(const byte buf[], size_t buf_size) alert(FATAL, DECODE_ERROR); throw; } + catch(Internal_Error& e) + { + alert(FATAL, INTERNAL_ERROR); + throw; + } catch(std::exception& e) { alert(FATAL, INTERNAL_ERROR); -- cgit v1.2.3