Correcting check of config value for vip_addr6

Updated for code consistency, but checking the IPv4 vip_addr
pointer might have given problems for IPv6 only configs.
This commit is contained in:
Björn Svensson 2022-02-11 16:09:03 +01:00
parent f684d891ac
commit 1df9798077
1 changed files with 2 additions and 2 deletions

View File

@ -521,8 +521,8 @@ port_cfg_handler(struct ff_config *cfg, const char *section,
cur->gateway6_str = strdup(value); cur->gateway6_str = strdup(value);
} else if (strcmp(name, "vip_addr6") == 0) { } else if (strcmp(name, "vip_addr6") == 0) {
cur->vip_addr6_str = strdup(value); cur->vip_addr6_str = strdup(value);
if (cur->vip_addr_str) { if (cur->vip_addr6_str) {
return vip6_cfg_hander(cur); return vip6_cfg_handler(cur);
} }
} else if (0 == strcmp(name, "vip_prefix_len")) { } else if (0 == strcmp(name, "vip_prefix_len")) {
cur->vip_prefix_len = atoi(value); cur->vip_prefix_len = atoi(value);