]> git.meshlink.io Git - meshlink/commitdiff
Remove confusing error message for failed reading in ECDSA keys.
authorSven-Haegar Koch <haegar@sdinet.de>
Sat, 14 Apr 2012 00:02:11 +0000 (02:02 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 15 Apr 2012 22:54:43 +0000 (00:54 +0200)
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

index 0d21cc059cfd1669a4d5bc1e656a97bf3d352800..4afb31b9c3ec5819e904762d600ba43cb7454086 100644 (file)
@@ -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;
 }