aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-04 19:19:14 +0000
committerlloyd <[email protected]>2012-01-04 19:19:14 +0000
commit734f004e883d2b55764c91da3bda16cb54a07686 (patch)
tree83a866cae0a7c4264631364e69f74d8335d72ace /src/tls
parent799ac21b42da667e1b2c6b381468982029524df7 (diff)
Compile fix
Diffstat (limited to 'src/tls')
-rw-r--r--src/tls/tls_channel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/tls_channel.cpp b/src/tls/tls_channel.cpp
index d0f5ab1e2..cc8c4ef10 100644
--- a/src/tls/tls_channel.cpp
+++ b/src/tls/tls_channel.cpp
@@ -174,7 +174,7 @@ void TLS_Channel::read_handshake(byte rec_type,
void TLS_Channel::queue_for_sending(const byte buf[], size_t buf_size)
{
if(!handshake_completed)
- throw std::invalid_state("Application data cannot be queued before handshake");
+ throw std::runtime_error("Application data cannot be queued before handshake");
writer.send(APPLICATION_DATA, buf, buf_size);
}