From 8792b9a9f343e751dc3cfd789db9528da609ba9f Mon Sep 17 00:00:00 2001 From: Sven-Haegar Koch Date: Sat, 14 Apr 2012 02:02:11 +0200 Subject: [PATCH] Remove confusing error message for failed reading in ECDSA keys. Most likeley the error is that there just is no valid key inside the used host file, and in this case errno just contains a random value from the last previously failed call. --- src/net_setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net_setup.c b/src/net_setup.c index 0d21cc05..4afb31b9 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -124,8 +124,8 @@ bool read_ecdsa_public_key(connection_t *c) { result = ecdsa_read_pem_public_key(&c->ecdsa, fp); fclose(fp); - if(!result) - logger(DEBUG_ALWAYS, LOG_ERR, "Reading ECDSA public key file `%s' failed: %s", fname, strerror(errno)); + if(!result) + logger(DEBUG_ALWAYS, LOG_ERR, "Parsing ECDSA public key file `%s' failed.", fname); free(fname); return result; }