Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: [nmap-svn] r32333 - nmap-exp/david/ncat-sa-take2/ncat
From: Jacek Wielemborek <wielemborekj1 () gmail com>
Date: Mon, 16 Sep 2013 14:43:28 +0200

2013/9/16  <commit-mailer () nmap org>:
Author: david
Date: Mon Sep 16 08:23:00 2013
New Revision: 32333

Log:
I don't know what this "initialize the registry" code does.

It shouldn't need initializing.

Modified:
   nmap-exp/david/ncat-sa-take2/ncat/ncat_lua_filters.c

Modified: nmap-exp/david/ncat-sa-take2/ncat/ncat_lua_filters.c
==============================================================================
--- nmap-exp/david/ncat-sa-take2/ncat/ncat_lua_filters.c        (original)
+++ nmap-exp/david/ncat-sa-take2/ncat/ncat_lua_filters.c        Mon Sep 16 08:23:00 2013
@@ -160,11 +160,6 @@
     lua_State *L = luaL_newstate();
     luaL_openlibs(L);

-    /* Initialize the registry. */
-    lua_pushlightuserdata(L, L);
-    lua_newtable(L);
-    lua_settable(L, LUA_REGISTRYINDEX);
-
     lua_create_supersocket(L);

     rc = luaL_loadstring(L, "return function(function_self, self, arg2) "

_______________________________________________
Sent through the svn mailing list
http://nmap.org/mailman/listinfo/svn

Yeah, forgot to remove it. The original idea was to store all values
in the registry under the table registry[touserdata(L)] to make the
key more unique. We gave up on that later.
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


  By Date           By Thread  

Current thread:
  • Re: [nmap-svn] r32333 - nmap-exp/david/ncat-sa-take2/ncat Jacek Wielemborek (Sep 16)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]