projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a potential memory leak.
[tinc]
/
src
/
meta.c
diff --git
a/src/meta.c
b/src/meta.c
index
09c063d
..
60814c7
100644
(file)
--- a/
src/meta.c
+++ b/
src/meta.c
@@
-1,6
+1,6
@@
/*
meta.c -- handle the meta communication
/*
meta.c -- handle the meta communication
- Copyright (C) 2000-201
6
Guus Sliepen <guus@tinc-vpn.org>,
+ Copyright (C) 2000-201
7
Guus Sliepen <guus@tinc-vpn.org>,
2000-2005 Ivo Timmermans
2006 Scott Lamb <slamb@slamb.org>
2000-2005 Ivo Timmermans
2006 Scott Lamb <slamb@slamb.org>
@@
-38,11
+38,6
@@
bool send_meta(connection_t *c, const char *buffer, int length) {
int outlen;
int result;
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);
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)) {
} 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 {
c->outbuflen, c->name, c->hostname);
return true;
} else {