X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_key.c;h=480019e7798c484c8a24288ca3e5ddd7e406050f;hb=902446edf822a32383c4fa4b7c13b83a568095ad;hp=8a1d6000947df5057953c5212c44529ebb2b5026;hpb=fe5563f92021618b4a8b41e412c73d8364fcaf6e;p=meshlink diff --git a/src/protocol_key.c b/src/protocol_key.c index 8a1d6000..480019e7 100644 --- a/src/protocol_key.c +++ b/src/protocol_key.c @@ -354,7 +354,7 @@ bool ans_key_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { /* Inform all other nodes we want to communicate with and which are reachable via this connection */ for splay_each(node_t, n, mesh->nodes) { - if(n->nexthop == c->node) { + if(n->nexthop != c->node) { continue; }