* Jan-Oliver Wagner [14. Feb 2009]:
> Hi,
> 
> I wonder wether is itsn't useless to have a exit(0) at the end of scripts as 
> it is the same as just ending the script. At least over 60 NVTs do so.

Looking at the code (nasl_do_exit in
openvas-libnasl/nasl/nasl_misc_funcs.c) I would guess I does not make a
difference aside from explicitly setting the return value to 0.

But as Eric said, I think it would be good style for the NASL scripts to
use the return value to let the world know what happened to them even if
the don't find anything newsworthy. Even an exit(0) would be good if it
signified "NVT ran okay, did not find a vulnerability".

Regards,

Michael

-- 
Michael Wiegand |  OpenPGP key: D7D049EC  |  http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

Attachment: pgpgmx47Pzcqy.pgp
Description: PGP signature

_______________________________________________
Openvas-plugins mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-plugins

Reply via email to