Diff

net/server.lua @ 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
parent 1535:0afc8ae01515
child 1544:c7f0938bc33e
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