aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/server.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/server.lua b/net/server.lua
index 706f290b..6ab8ce91 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -537,8 +537,8 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
handshake = coroutine_wrap( function( client ) -- create handshake coroutine
local err
for i = 1, _maxsslhandshake do
- _sendlistlen = ( wrote and removesocket( _sendlist, socket, _sendlistlen ) ) or _sendlistlen
- _readlistlen = ( read and removesocket( _readlist, socket, _readlistlen ) ) or _readlistlen
+ _sendlistlen = ( wrote and removesocket( _sendlist, client, _sendlistlen ) ) or _sendlistlen
+ _readlistlen = ( read and removesocket( _readlist, client, _readlistlen ) ) or _readlistlen
read, wrote = nil, nil
_, err = client:dohandshake( )
if not err then
@@ -546,7 +546,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
handler.readbuffer = _readbuffer -- when handshake is done, replace the handshake function with regular functions
handler.sendbuffer = _sendbuffer
_ = status and status( handler, "ssl-handshake-complete" )
- _readlistlen = addsocket(_readlist, socket, _readlistlen)
+ _readlistlen = addsocket(_readlist, client, _readlistlen)
return true
else
out_put( "server.lua: error during ssl handshake: ", tostring(err) )