ec_lua.c (ettercap-0.8.3) | : | ec_lua.c (ettercap-0.8.3.1) | ||
---|---|---|---|---|
skipping to change at line 183 | skipping to change at line 183 | |||
{ | { | |||
// Close things down all nice-nice. | // Close things down all nice-nice. | |||
lua_close(_lua_state); | lua_close(_lua_state); | |||
} | } | |||
else | else | |||
{ | { | |||
// Let's make sure all the messages are flushed so we can see where | // Let's make sure all the messages are flushed so we can see where | |||
// we are at. | // we are at. | |||
ui_msg_flush(MSG_ALL); | ui_msg_flush(MSG_ALL); | |||
// Dump our error and exit. We can't continue on becuase it is very | // Dump our error and exit. We can't continue on because it is very | |||
// possible that we still have hooks dangling around out there, and | // possible that we still have hooks dangling around out there, and | |||
// if we're only partially handling things then we could very well | // if we're only partially handling things then we could very well | |||
// get segfaults and such. | // get segfaults and such. | |||
FATAL_ERROR("EC_LUA: cleanup failed with error %d: %s\n", err_code, | FATAL_ERROR("EC_LUA: cleanup failed with error %d: %s\n", err_code, | |||
lua_tostring(_lua_state, -1)); | lua_tostring(_lua_state, -1)); | |||
} | } | |||
} | } | |||
else | else | |||
{ | { | |||
DEBUG_MSG("EC_LUA: cleanup No cleanup needed! Lua wasn't even loaded."); | DEBUG_MSG("EC_LUA: cleanup No cleanup needed! Lua wasn't even loaded."); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |