Fix `tinc get Subnet` failing.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 26 Jul 2021 13:46:48 +0000 (15:46 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 26 Jul 2021 13:46:48 +0000 (15:46 +0200)
src/tincctl.c

index 499a7b8..f2b587c 100644 (file)
@@ -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)) {