projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable PMTUDiscovery only if BOTH sides wants it.
[tinc]
/
src
/
graph.c
diff --git
a/src/graph.c
b/src/graph.c
index
9dd3fa5
..
5dfbb72
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-1,6
+1,6
@@
/*
graph.c -- graph algorithms
/*
graph.c -- graph algorithms
- Copyright (C) 2001-200
6
Guus Sliepen <guus@tinc-vpn.org>,
+ Copyright (C) 2001-200
7
Guus Sliepen <guus@tinc-vpn.org>,
2001-2005 Ivo Timmermans
This program is free software; you can redistribute it and/or modify
2001-2005 Ivo Timmermans
This program is free software; you can redistribute it and/or modify
@@
-101,7
+101,7
@@
void mst_kruskal(void)
/* Starting point */
/* Starting point */
- for(node = edge_weight_tree->head; node; node = next) {
+ for(node = edge_weight_tree->head; node; node = n
ode->n
ext) {
e = node->data;
if(e->from->status.reachable) {
e->from->status.visited = true;
e = node->data;
if(e->from->status.reachable) {
e->from->status.visited = true;
@@
-374,6
+374,9
@@
void dump_graph(void)
pclose(file);
} else {
fclose(file);
pclose(file);
} else {
fclose(file);
+#ifdef HAVE_MINGW
+ unlink(filename);
+#endif
rename(tmpname, filename);
free(tmpname);
}
rename(tmpname, filename);
free(tmpname);
}