From: Guus Sliepen Date: Mon, 26 Jul 2021 13:46:48 +0000 (+0200) Subject: Fix `tinc get Subnet` failing. X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=3074dad170a1c6755090bd12c3fb9903cde531ab;p=tinc Fix `tinc get Subnet` failing. --- diff --git a/src/tincctl.c b/src/tincctl.c index 499a7b86..f2b587c9 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -1931,7 +1931,7 @@ static int cmd_config(int argc, char *argv[]) { found = true; variable = (char *)variables[i].name; - if(!strcasecmp(variable, "Subnet")) { + if(!strcasecmp(variable, "Subnet") && *value) { subnet_t s = {0}; if(!str2net(&s, value)) {