X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Fmeta.c;h=189ead9e1b954970a265fce65da0d5497726ede4;hb=0b8b23e0dd7219344543f135ca0aeba8a4a42d48;hp=7562792e2f4aa83da535ac2277f97976eec97248;hpb=ff306f0cdaedb50de1472e7c1fb55de922a6ca60;p=tinc diff --git a/src/meta.c b/src/meta.c index 7562792e..189ead9e 100644 --- a/src/meta.c +++ b/src/meta.c @@ -76,13 +76,9 @@ bool send_meta(connection_t *c, const char *buffer, int length) { } void broadcast_meta(connection_t *from, const char *buffer, int length) { - for(list_node_t *node = connection_list->head, *next; node; node = next) { - next = node->next; - connection_t *c = node->data; - + for list_each(connection_t, c, connection_list) if(c != from && c->status.active) send_meta(c, buffer, length); - } } bool receive_meta_sptps(void *handle, uint8_t type, const char *data, uint16_t length) {