"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "base/hosts.c" between
gvm-libs-11.0.0.tar.gz and gvm-libs-11.0.1.tar.gz

About: GVM Libraries for the Greenbone Vulnerability Management (GVM-10) framework (derived from the former openvas-libraries).

hosts.c  (gvm-libs-11.0.0):hosts.c  (gvm-libs-11.0.1)
skipping to change at line 129 skipping to change at line 129
block_str++; block_str++;
if (!is_ipv4_address (addr_str) || !isdigit (*block_str)) if (!is_ipv4_address (addr_str) || !isdigit (*block_str))
{ {
g_free (addr_str); g_free (addr_str);
return 0; return 0;
} }
p = NULL; p = NULL;
block = strtol (block_str, &p, 10); block = strtol (block_str, &p, 10);
g_free (addr_str);
if (*p || block <= 0 || block > 30) if (*p || block <= 0 || block > 30)
return 0; {
g_free (addr_str);
return 0;
}
g_free (addr_str);
return 1; return 1;
} }
/** /**
* @brief Gets the network block value from a CIDR-expressed block string. * @brief Gets the network block value from a CIDR-expressed block string.
* For "192.168.1.1/24" it is 24. * For "192.168.1.1/24" it is 24.
* *
* @param[in] str Buffer containing CIDR-expressed block. * @param[in] str Buffer containing CIDR-expressed block.
* @param[out] block Variable to store block value. * @param[out] block Variable to store block value.
* *
 End of changes. 3 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)