aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_channel.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-24 13:52:04 +0000
committerlloyd <[email protected]>2012-01-24 13:52:04 +0000
commitcf2c77581d44ba39909d8cdb0f7b41cac99bb76c (patch)
treedcc61fb32b2a94e6b1d86075b047aa85b7349c52 /src/tls/tls_channel.cpp
parent1643d2a06d772a2bc32e391b6d4b97d6596392ca (diff)
Convert Internal_Error exceptions into the cooresponding alert.
Diffstat (limited to 'src/tls/tls_channel.cpp')
-rw-r--r--src/tls/tls_channel.cpp5
1 files changed, 5 insertions, 0 deletions
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);