]> tinc-vpn.org Git - tinc/blobdiff - src/tincctl.c
Fix `tinc get Subnet` failing.
[tinc] / src / tincctl.c
index 499a7b86b7398631998e55fcb5acb3f8d63aef70..f2b587c96bf1aa73e17d77addcf0e4d68ae2836c 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)) {