From: Guus Sliepen Date: Sat, 11 May 2013 12:04:39 +0000 (+0200) Subject: Fix check for presence of ECDSA public key for outgoing connections. X-Git-Tag: release-1.1pre8~50 X-Git-Url: https://www.tinc-vpn.org/git/browse?a=commitdiff_plain;h=3c163a3796c984deb874fb1cca1ed9a85fc1d087;hp=3c163a3796c984deb874fb1cca1ed9a85fc1d087;p=tinc Fix check for presence of ECDSA public key for outgoing connections. At this point, c->config_tree may or may not be NULL, but this does not tell us whether it is an outgoing connection or not. For incoming connections, we do not know the peer's name yet, so we always have to claim ECDSA support. For outgoing connections, we always need to check whether we have the peer's ECDSA public key, so that if we don't, we correctly tell the peer that we want to upgrade. ---