projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fancier protocol for control socket
[tinc]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index
1b5bb16
..
a4bff6d
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-272,7
+272,7
@@
static void sigwinch_handler(int signal, short events, void *data) {
static void sighup_handler(int signal, short events, void *data) {
connection_t *c;
static void sighup_handler(int signal, short events, void *data) {
connection_t *c;
- splay_node_t *node;
+ splay_node_t *node
, *next
;
char *fname;
struct stat s;
static time_t last_config_check = 0;
char *fname;
struct stat s;
static time_t last_config_check = 0;
@@
-292,8
+292,9
@@
static void sighup_handler(int signal, short events, void *data) {
/* Close connections to hosts that have a changed or deleted host config file */
/* Close connections to hosts that have a changed or deleted host config file */
- for(node = connection_tree->head; node; node = n
ode->n
ext) {
+ for(node = connection_tree->head; node; node = next) {
c = node->data;
c = node->data;
+ next = node->next;
if(c->outgoing) {
free(c->outgoing->name);
if(c->outgoing) {
free(c->outgoing->name);