未验证 提交 1baf3ace 编写于 作者: A arhag 提交者: GitHub

Merge pull request #3610 from EOSIO/fix-segfault

Fix segfaults #3604
......@@ -1943,7 +1943,7 @@ namespace eosio {
c->socket->async_connect( current_endpoint, [weak_conn, endpoint_itr, this] ( const boost::system::error_code& err ) {
auto c = weak_conn.lock();
if (!c) return;
if( !err ) {
if( !err && c->socket->is_open() ) {
start_session( c );
c->send_handshake ();
} else {
......@@ -1988,7 +1988,8 @@ namespace eosio {
if(conn->socket->is_open()) {
if (conn->peer_addr.empty()) {
visitors++;
if (paddr == conn->socket->remote_endpoint().address().to_v4()) {
boost::system::error_code ec;
if (paddr == conn->socket->remote_endpoint(ec).address().to_v4()) {
from_addr++;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册