]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / src / protocol_auth.c
index beeef54e289045da4de1cb3c6d7e405360def36e..e80af7d94a7c3f246e9267eb5fde93d6fd4b534d 100644 (file)
@@ -343,9 +343,7 @@ bool id_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
                return false;
        }
 
-       node_read_public_key(mesh, n);
-
-       if(!ecdsa_active(n->ecdsa)) {
+       if(!node_read_public_key(mesh, n)) {
                logger(mesh, MESHLINK_ERROR, "No key known for peer %s", c->name);
 
                if(n->status.reachable && !n->status.waitingforkey) {