Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63838 - trunk/boost/asio/ssl/detail
From: chris_at_[hidden]
Date: 2010-07-11 00:16:12


Author: chris_kohlhoff
Date: 2010-07-11 00:16:10 EDT (Sun, 11 Jul 2010)
New Revision: 63838
URL: http://svn.boost.org/trac/boost/changeset/63838

Log:
Preserve error value.

Text files modified:
   trunk/boost/asio/ssl/detail/openssl_operation.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/asio/ssl/detail/openssl_operation.hpp
==============================================================================
--- trunk/boost/asio/ssl/detail/openssl_operation.hpp (original)
+++ trunk/boost/asio/ssl/detail/openssl_operation.hpp 2010-07-11 00:16:10 EDT (Sun, 11 Jul 2010)
@@ -161,7 +161,7 @@
 
     if (error_code == SSL_ERROR_SSL)
       return handler_(boost::system::error_code(
- error_code, boost::asio::error::get_ssl_category()), rc);
+ sys_error_code, boost::asio::error::get_ssl_category()), rc);
 
     bool is_read_needed = (error_code == SSL_ERROR_WANT_READ);
     bool is_write_needed = (error_code == SSL_ERROR_WANT_WRITE ||
@@ -196,7 +196,7 @@
       else
       {
         return handler_(boost::system::error_code(
- error_code, boost::asio::error::get_ssl_category()), rc);
+ sys_error_code, boost::asio::error::get_ssl_category()), rc);
       }
     }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk