diff options
author | Joe Crayne <joe@jerkface.net> | 2020-01-15 23:57:55 -0500 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2020-01-16 00:14:18 -0500 |
commit | ebe24e703ea95f444d3da851fcc7f4f5230bc1c1 (patch) | |
tree | a858801941333ee9417a823bd3db461b288fdb4d | |
parent | 3940bf1dbf706f984388c5d55fb5e889e12864d5 (diff) |
Fixed serialization of cookie!
Bad cookies (without the DHTKey) have been issued ever
since commit d8797823bb3cbf91eabad48c400632dcecfec245
-rw-r--r-- | dht/src/Network/Tox/DHT/Transport.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dht/src/Network/Tox/DHT/Transport.hs b/dht/src/Network/Tox/DHT/Transport.hs index 9136caeb..ed755880 100644 --- a/dht/src/Network/Tox/DHT/Transport.hs +++ b/dht/src/Network/Tox/DHT/Transport.hs | |||
@@ -395,7 +395,7 @@ instance Serialize CookieData where | |||
395 | put (CookieData tm userkey dhtkey) = do | 395 | put (CookieData tm userkey dhtkey) = do |
396 | put tm | 396 | put tm |
397 | putPublicKey userkey | 397 | putPublicKey userkey |
398 | putPublicKey userkey | 398 | putPublicKey dhtkey |
399 | 399 | ||
400 | instance Sized CookieRequest where | 400 | instance Sized CookieRequest where |
401 | size = ConstSize 64 -- 32 byte key + 32 byte padding | 401 | size = ConstSize 64 -- 32 byte key + 32 byte padding |