Merge branch '1.1' of github.com:gsliepen/tinc into thkr-1.1-ponyhof
This commit is contained in:
commit
dc5491a59e
6 changed files with 9 additions and 7 deletions
|
@ -308,7 +308,7 @@ bool read_config_file(splay_tree_t *config_tree, const char *fname) {
|
||||||
fp = fopen(fname, "r");
|
fp = fopen(fname, "r");
|
||||||
|
|
||||||
if(!fp) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -433,7 +433,7 @@ bool append_config_file(const char *name, const char *key, const char *value) {
|
||||||
FILE *fp = fopen(fname, "a");
|
FILE *fp = fopen(fname, "a");
|
||||||
|
|
||||||
if(!fp) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ edge_t *new_edge(void) {
|
||||||
|
|
||||||
void free_edge(edge_t *e) {
|
void free_edge(edge_t *e) {
|
||||||
sockaddrfree(&e->address);
|
sockaddrfree(&e->address);
|
||||||
|
sockaddrfree(&e->local_address);
|
||||||
|
|
||||||
free(e);
|
free(e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,6 +206,10 @@
|
||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_LINUX_IF_TUN_H
|
||||||
|
#include <linux/if_tun.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef STATUS
|
#ifdef STATUS
|
||||||
#undef STATUS
|
#undef STATUS
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1000,6 +1000,7 @@ static bool setup_myself(void) {
|
||||||
else if(!strcasecmp(type, "vde"))
|
else if(!strcasecmp(type, "vde"))
|
||||||
devops = vde_devops;
|
devops = vde_devops;
|
||||||
#endif
|
#endif
|
||||||
|
free(type);
|
||||||
}
|
}
|
||||||
if (type)
|
if (type)
|
||||||
free(type);
|
free(type);
|
||||||
|
|
|
@ -618,7 +618,7 @@ void setup_outgoing_connection(outgoing_t *outgoing) {
|
||||||
if(n)
|
if(n)
|
||||||
outgoing->aip = outgoing->ai = get_known_addresses(n);
|
outgoing->aip = outgoing->ai = get_known_addresses(n);
|
||||||
if(!outgoing->ai) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,10 +19,6 @@
|
||||||
|
|
||||||
#include "../system.h"
|
#include "../system.h"
|
||||||
|
|
||||||
#include <openssl/rand.h>
|
|
||||||
#include <openssl/evp.h>
|
|
||||||
#include <openssl/engine.h>
|
|
||||||
|
|
||||||
#include "../crypto.h"
|
#include "../crypto.h"
|
||||||
|
|
||||||
#ifndef HAVE_MINGW
|
#ifndef HAVE_MINGW
|
||||||
|
|
Loading…
Reference in a new issue