[Openvas-commits] r5542 - in trunk/openvas-scanner: . cnvts/synscan
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Oct 14 16:41:56 CEST 2009
Author: srinivas
Date: 2009-10-14 16:41:55 +0200 (Wed, 14 Oct 2009)
New Revision: 5542
Modified:
trunk/openvas-scanner/ChangeLog
trunk/openvas-scanner/cnvts/synscan/synscan.c
Log:
Temporary fix to solve compilation warning
Modified: trunk/openvas-scanner/ChangeLog
===================================================================
--- trunk/openvas-scanner/ChangeLog 2009-10-14 13:38:45 UTC (rev 5541)
+++ trunk/openvas-scanner/ChangeLog 2009-10-14 14:41:55 UTC (rev 5542)
@@ -1,3 +1,9 @@
+2009-10-14 Srinivas NL <nl.srinivas at gmail.com>
+
+ * cnvts/synscan/synscan.c: Temporary fix to remove compilation
+ warning. Will be fixed properly once pcap is modified to handle
+ ipv6
+
2009-10-14 Felix Wolfsteller <felix.wolfsteller at intevation.de>
* openvassd/openvassd.c, openvassd/attack.c: Corrected includes.
Modified: trunk/openvas-scanner/cnvts/synscan/synscan.c
===================================================================
--- trunk/openvas-scanner/cnvts/synscan/synscan.c 2009-10-14 13:38:45 UTC (rev 5541)
+++ trunk/openvas-scanner/cnvts/synscan/synscan.c 2009-10-14 14:41:55 UTC (rev 5542)
@@ -703,9 +703,15 @@
plugin_run(struct arglist * env)
{
unsigned long rtt;
- struct in_addr *dst = plug_get_host_ip(env);
+ struct in6_addr *dst6 = plug_get_host_ip(env);
+ struct in_addr *dst;
+ struct in_addr inaddr;
struct timeval tv;
+ if(IN6_IS_ADDR_V4MAPPED(dst6) == 0)
+ return 0;
+ inaddr.s_addr = dst6->s6_addr32[3];
+ dst = &inaddr;
if ( islocalhost(dst) ) return 0;
More information about the Openvas-commits
mailing list