X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_edge.c;h=641011cffd859f1391f57a1cf64456012542af66;hb=2a18ac20efd8ed3e1fd76f11f6f816e77c099e47;hp=ecad9c6e2c08a562faffff195cea1e559e37b8b6;hpb=8fc838f88fad6d6a632f9d4e6906e31931c765e3;p=meshlink diff --git a/src/protocol_edge.c b/src/protocol_edge.c index ecad9c6e..641011cf 100644 --- a/src/protocol_edge.c +++ b/src/protocol_edge.c @@ -121,7 +121,7 @@ bool add_edge_h(connection_t *c, const char *request) { } else if(from == mesh->self) { logger(DEBUG_PROTOCOL, LOG_WARNING, "Got %s from %s (%s) for ourself which does not exist", "ADD_EDGE", c->name, c->hostname); - contradicting_add_edge++; + mesh->contradicting_add_edge++; e = new_edge(); e->from = from; e->to = to; @@ -207,7 +207,7 @@ bool del_edge_h(connection_t *c, const char *request) { if(e->from == mesh->self) { logger(DEBUG_PROTOCOL, LOG_WARNING, "Got %s from %s (%s) for ourself", "DEL_EDGE", c->name, c->hostname); - contradicting_del_edge++; + mesh->contradicting_del_edge++; send_add_edge(c, e); /* Send back a correction */ return true; }