ports/security/openvas-scanner/files/patch-src_attack.c
Tijl Coosemans 292294adfb Update OpenVAS ports from version 2 to version 8. All components have
been renamed and rearranged.  The graphical user interface provided by
security/openvas-client has been discontinued.  Instead there is now a
web interface provided by security/greenbone-security-assistant and a
command-line interface provided by security/openvas-client.
2016-03-17 12:57:25 +00:00

20 lines
696 B
C

--- src/attack.c.orig 2015-08-03 10:14:45 UTC
+++ src/attack.c
@@ -647,7 +647,7 @@ attack_start (struct attack_start_args *
{
char *txt_ip;
struct in_addr inaddr;
- inaddr.s_addr = hostip->s6_addr32[3];
+ memcpy(&inaddr.s_addr, &hostip->s6_addr[12], 4);
if (IN6_IS_ADDR_V4MAPPED (hostip))
txt_ip = g_strdup (inet_ntoa (inaddr));
@@ -1215,7 +1215,7 @@ stop:
gettimeofday (&now, NULL);
log_write ("Total time to scan all hosts : %ld seconds",
- now.tv_sec - then.tv_sec);
+ (long) (now.tv_sec - then.tv_sec));
if (do_network_scan && network_phase && !scan_is_stopped ())
attack_network (globals, network_kb);