From: Guus Sliepen Date: Sun, 24 May 2009 17:31:31 +0000 (+0200) Subject: Fix initialisation of packet decryption context broken by commit 3308d13e7e3bf20cfeaf... X-Git-Tag: release-1.0.10~66 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=e012e752f4f1a2b06dfab4640bbbea8f084999ff;hp=e012e752f4f1a2b06dfab4640bbbea8f084999ff 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. ---