X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_key.c;h=25dbc55e5c04b7533e9eb0f6c5eeb62214cc648e;hb=777055274c4a1959318330800e449a2bc27835fb;hp=b2ba50fe14de198573fc1a9424c6b2e6ddf28327;hpb=a4f9eca1b05d1b0cdb8854169bf1165ae4b99c0b;p=meshlink diff --git a/src/protocol_key.c b/src/protocol_key.c index b2ba50fe..25dbc55e 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -278,7 +278,7 @@ static bool req_key_ext_h(meshlink_handle_t *mesh, connection_t *c, const char * char *canonical_address; xasprintf(&canonical_address, "%s %s", host, port); - if(mesh->log_level <= MESHLINK_DEBUG && strcmp(from->canonical_address, canonical_address)) { + if(mesh->log_level <= MESHLINK_DEBUG && (!from->canonical_address || strcmp(from->canonical_address, canonical_address))) { logger(mesh, MESHLINK_DEBUG, "Updating canonical address of %s to %s", from->name, canonical_address); }