fix ssl_stream typo

This commit is contained in:
Arvid Norberg 2013-09-03 18:14:17 +00:00
parent 4b0c4165d7
commit 56f1fb42d8
1 changed files with 2 additions and 2 deletions

View File

@ -150,14 +150,14 @@ public:
template <class GettableSocketOption> template <class GettableSocketOption>
void get_option(GettableSocketOption& opt) void get_option(GettableSocketOption& opt)
{ {
m_sock.get_option(opt); m_sock.next_layer().get_option(opt);
} }
#endif #endif
template <class GettableSocketOption> template <class GettableSocketOption>
error_code get_option(GettableSocketOption& opt, error_code& ec) error_code get_option(GettableSocketOption& opt, error_code& ec)
{ {
return m_sock.get_option(opt, ec); return m_sock.next_layer().get_option(opt, ec);
} }
#ifndef BOOST_NO_EXCEPTIONS #ifndef BOOST_NO_EXCEPTIONS