From: Guus Sliepen Date: Sun, 8 Dec 2013 20:32:21 +0000 (+0100) Subject: Don't print an error when no ECDSA key is known for a node using the legacy protocol. X-Git-Tag: release-1.1pre10~27 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=be1446f5d0e8831b60ea473a5b7b9ba40f18986e;p=tinc Don't print an error when no ECDSA key is known for a node using the legacy protocol. --- diff --git a/src/net_setup.c b/src/net_setup.c index c7f8faa3..98e6ece2 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -86,10 +86,8 @@ bool node_read_ecdsa_public_key(node_t *n) { fp = fopen(pubname, "r"); - if(!fp) { - logger(DEBUG_ALWAYS, LOG_ERR, "Error reading ECDSA public key file `%s': %s", pubname, strerror(errno)); + if(!fp) goto exit; - } n->ecdsa = ecdsa_read_pem_public_key(fp); fclose(fp);