X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fmeta.c;h=9c38fefb19e380d7c0a9bece05eb193ce6668699;hp=27d2394a2d7d1877a960c0d08c1715d667fc5484;hb=a227843b739d279b63adcf3736ebb03d856080c4;hpb=5dde6461a321ee47b06e33f8203f2acf00a31a51 diff --git a/src/meta.c b/src/meta.c index 27d2394a..9c38fefb 100644 --- a/src/meta.c +++ b/src/meta.c @@ -36,8 +36,6 @@ bool send_meta(connection_t *c, const char *buffer, int length) { int outlen; int result; - cp(); - if(!c) { logger(LOG_ERR, _("send_meta() called with NULL pointer!")); abort(); @@ -121,8 +119,6 @@ void broadcast_meta(connection_t *from, const char *buffer, int length) { avl_node_t *node; connection_t *c; - cp(); - for(node = connection_tree->head; node; node = node->next) { c = node->data; @@ -137,8 +133,6 @@ bool receive_meta(connection_t *c) { bool decrypted = false; char inbuf[MAXBUFSIZE]; - cp(); - /* Strategy: - Read as much as possible from the TCP socket in one go. - Decrypt it.