From f683922ca0c57a66b8bcb389b1b1bfd2617eb823 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 10 Jan 2018 02:38:29 +0100 Subject: tools: ifname has max len 15 --- app/tools/wg-quick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') 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(®ex_iface, "^[a-zA-Z0-9_=+.-]{1,16}$", REG_EXTENDED | REG_NOSUB); - xregcomp(®ex_conf, "/?([a-zA-Z0-9_=+.-]{1,16})\\.conf$", REG_EXTENDED); + xregcomp(®ex_iface, "^[a-zA-Z0-9_=+.-]{1,15}$", REG_EXTENDED | REG_NOSUB); + xregcomp(®ex_conf, "/?([a-zA-Z0-9_=+.-]{1,15})\\.conf$", REG_EXTENDED); if (!regexec(®ex_iface, arg, 0, NULL, 0)) { for (char *path = strtok(paths, " "); path; path = strtok(NULL, " ")) { -- cgit v1.2.3