Don't enable -fstack-protector-all.
[tinc] / src / net_setup.c
index c7f8faa..858992c 100644 (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);
@@ -675,7 +673,8 @@ static bool setup_myself(void) {
 
        if(!get_config_bool(lookup_config(config_tree, "ExperimentalProtocol"), &experimental)) {
                experimental = read_ecdsa_private_key();
-               logger(DEBUG_ALWAYS, LOG_WARNING, "Support for SPTPS disabled.");
+               if(!experimental)
+                       logger(DEBUG_ALWAYS, LOG_WARNING, "Support for SPTPS disabled.");
        } else {
                if(experimental && !read_ecdsa_private_key())
                        return false;