diff --git a/src/conf.c b/src/conf.c index ec41b58b..4a1bedce 100644 --- a/src/conf.c +++ b/src/conf.c @@ -308,7 +308,7 @@ bool read_config_file(splay_tree_t *config_tree, const char *fname) { fp = fopen(fname, "r"); if(!fp) { - logger(DEBUG_ALWAYS, LOG_ERR, "Cannot open config file %s: %s", fname, strerror(errno)); + logger(DEBUG_ALWAYS, LOG_DEBUG, "Cannot open config file %s: %s", fname, strerror(errno)); return false; } @@ -433,7 +433,7 @@ bool append_config_file(const char *name, const char *key, const char *value) { FILE *fp = fopen(fname, "a"); if(!fp) { - logger(DEBUG_ALWAYS, LOG_ERR, "Cannot open config file %s: %s", fname, strerror(errno)); + logger(DEBUG_ALWAYS, LOG_DEBUG, "Cannot open config file %s: %s", fname, strerror(errno)); return false; } diff --git a/src/edge.c b/src/edge.c index d81b3fae..69c3eab2 100644 --- a/src/edge.c +++ b/src/edge.c @@ -83,6 +83,7 @@ edge_t *new_edge(void) { void free_edge(edge_t *e) { sockaddrfree(&e->address); + sockaddrfree(&e->local_address); free(e); } diff --git a/src/have.h b/src/have.h index 9dc3b04c..88733a1e 100644 --- a/src/have.h +++ b/src/have.h @@ -206,6 +206,10 @@ #include #endif +#ifdef HAVE_LINUX_IF_TUN_H +#include +#endif + #ifdef STATUS #undef STATUS #endif diff --git a/src/net_setup.c b/src/net_setup.c index 054f66ee..1b0177ba 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -1000,6 +1000,7 @@ static bool setup_myself(void) { else if(!strcasecmp(type, "vde")) devops = vde_devops; #endif + free(type); } if (type) free(type); diff --git a/src/net_socket.c b/src/net_socket.c index 5af458e7..8aa718f0 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -618,7 +618,7 @@ void setup_outgoing_connection(outgoing_t *outgoing) { if(n) outgoing->aip = outgoing->ai = get_known_addresses(n); if(!outgoing->ai) { - logger(DEBUG_ALWAYS, LOG_ERR, "No address known for %s", outgoing->name); + logger(DEBUG_ALWAYS, LOG_DEBUG, "No address known for %s", outgoing->name); return; } } diff --git a/src/nolegacy/crypto.c b/src/nolegacy/crypto.c index 96e4dda2..f1113b46 100644 --- a/src/nolegacy/crypto.c +++ b/src/nolegacy/crypto.c @@ -19,10 +19,6 @@ #include "../system.h" -#include -#include -#include - #include "../crypto.h" #ifndef HAVE_MINGW