From 3074dad170a1c6755090bd12c3fb9903cde531ab Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 26 Jul 2021 15:46:48 +0200 Subject: [PATCH] Fix `tinc get Subnet` failing. --- src/tincctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.20.1