diff options
author | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2022-01-13 11:21:22 +0300 |
---|---|---|
committer | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2022-01-13 12:22:05 +0300 |
commit | 8f5eb791f822230e11ee98cf3cd4267eb2ac0edf (patch) | |
tree | fd7b72809a94198e60f84cbe9b16f8ee8f4e7736 /src | |
parent | 4a8b2443b2ba556a7a1f6b29ef89dfc7f7b2efce (diff) |
.......PS. [ZBX-20246] fixed wrong empty vector condition
Diffstat (limited to 'src')
-rw-r--r-- | src/zabbix_server/vmware/vmware.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/zabbix_server/vmware/vmware.c b/src/zabbix_server/vmware/vmware.c index 275174afadd..8dcc7c07d39 100644 --- a/src/zabbix_server/vmware/vmware.c +++ b/src/zabbix_server/vmware/vmware.c @@ -3789,7 +3789,6 @@ static char *vmware_hv_ip_search(xmlDoc *xdoc) if (NULL == ip_hv) continue; - if (0 == ipv6) zbx_snprintf(buff, sizeof(buff), ZBX_XPATH_HV_NIC_V4MASK("management"), selected_ifs.values[i]); else @@ -3820,7 +3819,7 @@ static char *vmware_hv_ip_search(xmlDoc *xdoc) ZBX_NULL2EMPTY_STR(ip_vc), buff); } - if (0 == selected_ips.values) + if (0 == selected_ips.values_num) goto out; /* prefer IP from IP-subnet with default gateway */ |