From 891606b5ddf0670657735efeabe5daf4b4f04049 Mon Sep 17 00:00:00 2001 From: James Crayne Date: Fri, 1 Jun 2018 05:10:36 +0000 Subject: dont discard session secret on response handshake! --- src/Network/Tox/Crypto/Handlers.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index ea70c72c..5316acc8 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs @@ -855,7 +855,7 @@ handshakeH sessions addrRaw hshake@(Handshake (Cookie n24 ecookie) nonce24 encry freshCryptoSession sessions addr newsession timestamp hp -- create new session Just session -> do dmsg "sockaddr ALREADY in session map, so updateCryptoSession" - updateCryptoSession sessions addr newsession timestamp hp session hshake -- update existing session + updateCryptoSession sessions addr (ncSessionSecret session) timestamp hp session hshake -- update existing session launchThreads forM myhandshake $ \response_handshake -> do sendHandshake sessions addr response_handshake -- cgit v1.2.3