]> git.meshlink.io Git - meshlink/commit
Fix initialisation of packet decryption context broken by commit 3308d13e7e3bf20cfeaf...
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 24 May 2009 17:31:31 +0000 (19:31 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 24 May 2009 17:31:31 +0000 (19:31 +0200)
commite012e752f4f1a2b06dfab4640bbbea8f084999ff
treed38da4c9de5d2e0c47607d706b69065ad629b78e
parent0246939ce18e1af9660b782b6814be182a7af9da
Fix initialisation of packet decryption context broken by commit 3308d13e7e3bf20cfeaf6f2ab17228a9820cea66.

Instead of a single, global decryption context, each node has its own context.
However, in send_ans_key(), the global context was initialised. This commit
fixes that and removes the global context completely.

Also only set status.validkey after all checks have been evaluated.
src/net.h
src/net_packet.c
src/net_setup.c
src/protocol_key.c