]> git.lizzy.rs Git - go-anidb.git/commit
udpapi: Handle encryption correctly
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Sun, 14 Jul 2013 17:34:21 +0000 (14:34 -0300)
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Sun, 14 Jul 2013 17:34:21 +0000 (14:34 -0300)
commit346928a2f50ba5df9cc754b5f7cc8d423690ce3a
treead19da2dd9dbf6ddc52a62f1ceae628e01d4936e
parent24c69ca632f7bf0dd87604c0d7e1346bb6b741bd
udpapi: Handle encryption correctly

Previously, the very first packet to be received after the ENCRYPT call
was not properly decrypted; the getPacket function was using the old
encryption state.
udp/comm.go
udp/packet.go