projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tincctl: Use replace_name to properly replace and validate input hostnames
[tinc]
/
src
/
tincctl.c
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
158dfed
..
f18dc50
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-1305,7
+1305,7
@@
char *get_my_name(bool verbose) {
continue;
if(*value) {
fclose(f);
continue;
if(*value) {
fclose(f);
- return
strdup
(value);
+ return
replace_name
(value);
}
}
}
}