*** Sebastien Aucouturier wrote:
> i got a FP with cacti_detect.nasl,
> 
> on my system, file docs/CHANGELOG is not available.

[...]

> I attach a diff with my suggested modification : cacti_detect.diff1

There is a problem with your patch when docs/CHANGELOG is
available (The pattern for the version check will match the "1.1" in 
"HTTP/1.1").

I would suggest the following patch to http_keepalive.inc:

--- /home/mime/openvas/svn/trunk/openvas-plugins/scripts/http_keepalive.inc     
2013-03-19 13:22:48.997573760 +0100
+++ /var/lib/openvas/plugins/http_keepalive.inc 2013-07-31 16:34:00.243223815 
+0200
@@ -293,7 +293,7 @@
     }
     headers = http_recv_headers2(socket:__ka_socket);
        }
-
+  if(!fetch404 && ereg(pattern:"^HTTP/.* 404", string:headers)) return;
   return  http_keepalive_recv_body(headers: headers, bodyonly:bodyonly);
    }

Could you test this patch? I'm still on vacation until next Monday and have
no time for deeper testing at the moment.

Thanks for your reports and your patch!

Micha     

-- 
Michael Meyer                            OpenPGP Key: 52A6EFA6
http://www.greenbone.net/
Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG
Osnabrück, HR B 202460
Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
_______________________________________________
Openvas-plugins mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-plugins

Reply via email to