projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use the same logic as tinc 1.0.x for detecting two nodes with the same Name.
[tinc]
/
src
/
control.c
diff --git
a/src/control.c
b/src/control.c
index
bcafc09
..
7f46a70
100644
(file)
--- a/
src/control.c
+++ b/
src/control.c
@@
-134,7
+134,6
@@
bool control_h(connection_t *c, char *request) {
bool init_control(void) {
randomize(controlcookie, sizeof controlcookie / 2);
bin2hex(controlcookie, controlcookie, sizeof controlcookie / 2);
- controlcookie[sizeof controlcookie - 1] = 0;
FILE *f = fopen(pidfilename, "w");
if(!f) {