Nmap Development mailing list archives

[PATCH] --script-updatedb finishes with "Aborting database update."


From: jah <jah () zadkiel plus com>
Date: Fri, 06 Jun 2008 15:16:50 +0100

Hi all,

I'm getting the following with --script-updatedb:

Starting Nmap 4.65 ( http://nmap.org ) at 2008-06-06 14:59 GMT Standard Time
NSE script database updated successfully.
SCRIPT ENGINE: Aborting database update.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.078 seconds

which seems to be caused by comparing "ret" in nse_main.cc:125 without
it being initialised.

I'm not quite certain that the attached patch is the best way to fix
that, but it works for me and doesn't look like it would cause any problems.

Regards,

jah

--- nse_main.cc.orig    2008-06-06 14:58:39.671875000 +0100
+++ nse_main.cc 2008-06-06 15:08:09.593750000 +0100
@@ -80,7 +80,7 @@
 int script_updatedb (void)
 {
   int status;
-  int ret;
+  int ret = SCRIPT_ENGINE_SUCCESS;
   lua_State *L;
 
   SCRIPT_ENGINE_VERBOSE(

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: