1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-18 21:49:01 +00:00

Fix misleading indentation in nse_nsock.cc.

This commit is contained in:
david
2009-05-03 22:09:25 +00:00
parent d757338fa2
commit 4816c7880e

View File

@@ -755,9 +755,9 @@ static int l_nsock_gc(lua_State *L){
if(udata->nsiod == NULL) { //socket obviously got closed already - so no finalization needed if(udata->nsiod == NULL) { //socket obviously got closed already - so no finalization needed
return 0; return 0;
}else{ }else{
//FIXME - check wheter close returned true!! //FIXME - check wheter close returned true!!
for (int i = 0; i < 3; i++) for (int i = 0; i < 3; i++)
luaL_unref(L, LUA_REGISTRYINDEX, udata->rbuf_args[i]); luaL_unref(L, LUA_REGISTRYINDEX, udata->rbuf_args[i]);
l_nsock_close(L); l_nsock_close(L);
} }
return 0; return 0;
@@ -766,7 +766,7 @@ static int l_nsock_gc(lua_State *L){
static int l_nsock_close(lua_State *L) { static int l_nsock_close(lua_State *L) {
l_nsock_udata* udata = (l_nsock_udata*) luaL_checkudata(L, 1, "nsock"); l_nsock_udata* udata = (l_nsock_udata*) luaL_checkudata(L, 1, "nsock");
socket_unlock(L, 1); // Unlock the socket. socket_unlock(L, 1); // Unlock the socket.
/* Never ever collect nse-pcap connections. */ /* Never ever collect nse-pcap connections. */
if(udata->ncap_socket){ if(udata->ncap_socket){