
Hi, Please find the latest report on new defect(s) introduced to libvirt found with Coverity Scan. 1 new defect(s) introduced to libvirt found with Coverity Scan. New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s) ** CID 308307: Incorrect expression (EVALUATION_ORDER) /src/network/bridge_driver.c: 4158 in networkGetDHCPLeases() ________________________________________________________________________________________________________ *** CID 308307: Incorrect expression (EVALUATION_ORDER) /src/network/bridge_driver.c: 4158 in networkGetDHCPLeases() 4152 /* Unlike IPv4, IPv6 uses ':' instead of '.' as separator */ 4153 ipv6 = strchr(ip_tmp, ':') ? true : false; 4154 lease->type = ipv6 ? VIR_IP_ADDR_TYPE_IPV6 : VIR_IP_ADDR_TYPE_IPV4; 4155 4156 /* Obtain prefix */ 4157 for (j = 0; j < def->nips; j++) {
CID 308307: Incorrect expression (EVALUATION_ORDER) In "ipdef_tmp = ipdef_tmp = &def->ips[j]", "ipdef_tmp" is written twice with the same value.
4158 virNetworkIPDefPtr ipdef_tmp = ipdef_tmp = &def->ips[j]; 4159 4160 if (ipv6 && VIR_SOCKET_ADDR_IS_FAMILY(&ipdef_tmp->address, 4161 AF_INET6)) { 4162 lease->prefix = ipdef_tmp->prefix; 4163 break;
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...