Don't print an error when no ECDSA key is known for a node using the legacy protocol.

This commit is contained in:
Guus Sliepen 2013-12-08 21:32:21 +01:00
parent c151cfa2e9
commit be1446f5d0

View file

@ -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);