]> tinc-vpn.org Git - tinc/blobdiff - src/tincctl.c
tincctl: Use replace_name to properly replace and validate input hostnames
[tinc] / src / tincctl.c
index 158dfed89acd3201d0b1d2084565500ffa3a0b2e..f18dc50ee2f7c919e1af4f0356c4c64a344460e6 100644 (file)
@@ -1305,7 +1305,7 @@ char *get_my_name(bool verbose) {
                        continue;
                if(*value) {
                        fclose(f);
-                       return strdup(value);
+                       return replace_name(value);
                }
        }