X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fmeta.c;h=60814c78d59fc2ab59611d63f7859ed58494f59a;hp=09c063d35bac3a7c48f25b5f46e78f1c9006588b;hb=acd018074972f9c13ffecffb618f799d914bbe97;hpb=07ace0b6481efcc0a058aab7b90b95edd31709da diff --git a/src/meta.c b/src/meta.c index 09c063d3..60814c78 100644 --- a/src/meta.c +++ b/src/meta.c @@ -1,6 +1,6 @@ /* meta.c -- handle the meta communication - Copyright (C) 2000-2016 Guus Sliepen , + Copyright (C) 2000-2017 Guus Sliepen , 2000-2005 Ivo Timmermans 2006 Scott Lamb @@ -38,11 +38,6 @@ bool send_meta(connection_t *c, const char *buffer, int length) { int outlen; int result; - if(!c) { - logger(LOG_ERR, "send_meta() called with NULL pointer!"); - abort(); - } - ifdebug(META) logger(LOG_DEBUG, "Sending %d bytes of metadata to %s (%s)", length, c->name, c->hostname); @@ -104,7 +99,7 @@ bool flush_meta(connection_t *c) { } else if(errno == EINTR) { continue; } else if(sockwouldblock(sockerrno)) { - ifdebug(CONNECTIONS) logger(LOG_DEBUG, "Flushing %d bytes to %s (%s) would block", + ifdebug(META) logger(LOG_DEBUG, "Flushing %d bytes to %s (%s) would block", c->outbuflen, c->name, c->hostname); return true; } else {