mirror of https://github.com/F-Stack/f-stack.git
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:
parent
f684d891ac
commit
1df9798077
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue