summaryrefslogtreecommitdiffhomepage
path: root/app/tools
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-01-10 02:38:29 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-01-10 02:38:29 +0100
commit01faa9b35894a132e7af82bd2bc1a69bbfc3ef19 (patch)
tree5c2eb8c86d94d2350eb1314a2f2489263a506fe1 /app/tools
parenta42892bc289ac5d4b7e7ffe79001d3305172f2ea (diff)
tools: ifname has max len 15
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/tools')
-rw-r--r--app/tools/wg-quick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/tools/wg-quick.c b/app/tools/wg-quick.c
index f3f552fd..0d4b714a 100644
--- a/app/tools/wg-quick.c
+++ b/app/tools/wg-quick.c
@@ -543,8 +543,8 @@ static void parse_options(char **iface, char **config, unsigned int *mtu, char *
*iface = *config = *addrs = *dnses = NULL;
*mtu = 0;
- xregcomp(&regex_iface, "^[a-zA-Z0-9_=+.-]{1,16}$", REG_EXTENDED | REG_NOSUB);
- xregcomp(&regex_conf, "/?([a-zA-Z0-9_=+.-]{1,16})\\.conf$", REG_EXTENDED);
+ xregcomp(&regex_iface, "^[a-zA-Z0-9_=+.-]{1,15}$", REG_EXTENDED | REG_NOSUB);
+ xregcomp(&regex_conf, "/?([a-zA-Z0-9_=+.-]{1,15})\\.conf$", REG_EXTENDED);
if (!regexec(&regex_iface, arg, 0, NULL, 0)) {
for (char *path = strtok(paths, " "); path; path = strtok(NULL, " ")) {