Changeset

1543:d2d80c1cad6c

net.server: Correct fix for SSL traceback earlier
author Matthew Wild <mwild1@gmail.com>
date Sun, 12 Jul 2009 20:25:02 +0100
parents 1541:591732da1306
children 1544:c7f0938bc33e
files net/server.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server.lua	Sun Jul 12 19:16:37 2009 +0100
+++ b/net/server.lua	Sun Jul 12 20:25:02 2009 +0100
@@ -546,7 +546,7 @@
             socket:settimeout( 0 )
             handler.readbuffer = handshake
             handler.sendbuffer = handshake
-            if not handshake( socket ) then   -- do handshake
+            if not socket then   -- do handshake
                 return nil, nil, "ssl handshake failed";
             end
         else