summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options.c')
-rw-r--r--options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/options.c b/options.c
index e84e03c..95d81a0 100644
--- a/options.c
+++ b/options.c
@@ -4499,7 +4499,8 @@ add_option (struct options *options,
options->ifconfig_pool_defined = true;
options->ifconfig_pool_start = start;
options->ifconfig_pool_end = end;
- options->ifconfig_pool_netmask = netmask;
+ if (netmask)
+ options->ifconfig_pool_netmask = netmask;
}
else if (streq (p[0], "ifconfig-pool-persist") && p[1])
{