diff options
author | James Crayne <jim.crayne@gmail.com> | 2018-06-01 05:10:36 +0000 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2018-06-01 05:10:36 +0000 |
commit | 891606b5ddf0670657735efeabe5daf4b4f04049 (patch) | |
tree | bc40d65da8343f2f4cd9002f14d804dbbe91bdef /src | |
parent | 4d00b88f1b9e5f71bdfde750c0495080ebd430f2 (diff) |
dont discard session secret on response handshake!
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/Tox/Crypto/Handlers.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
855 | freshCryptoSession sessions addr newsession timestamp hp -- create new session | 855 | freshCryptoSession sessions addr newsession timestamp hp -- create new session |
856 | Just session -> do | 856 | Just session -> do |
857 | dmsg "sockaddr ALREADY in session map, so updateCryptoSession" | 857 | dmsg "sockaddr ALREADY in session map, so updateCryptoSession" |
858 | updateCryptoSession sessions addr newsession timestamp hp session hshake -- update existing session | 858 | updateCryptoSession sessions addr (ncSessionSecret session) timestamp hp session hshake -- update existing session |
859 | launchThreads | 859 | launchThreads |
860 | forM myhandshake $ \response_handshake -> do | 860 | forM myhandshake $ \response_handshake -> do |
861 | sendHandshake sessions addr response_handshake | 861 | sendHandshake sessions addr response_handshake |