]> tinc-vpn.org Git - tinc/commitdiff
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 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)) {