aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/lua/packet-lua.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2006-02-14 01:29:55 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2006-02-14 01:29:55 +0000
commit0980473a80330b49b6faec5cd5007980a5581d32 (patch)
treeab769bfd8690d207e2dd9bd3bee76cbaef3dc506 /plugins/lua/packet-lua.c
parentad9da9fccba26bc0e03e308a0541ae6935370475 (diff)
- fix a sure crash after an error in lua code lua_tap_draw.
- make sure no reference to a Tvb in lua is used after the lua dissector has returned. svn path=/trunk/; revision=17296
Diffstat (limited to 'plugins/lua/packet-lua.c')
-rw-r--r--plugins/lua/packet-lua.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/lua/packet-lua.c b/plugins/lua/packet-lua.c
index 875cff4aa3..c4084840f1 100644
--- a/plugins/lua/packet-lua.c
+++ b/plugins/lua/packet-lua.c
@@ -171,6 +171,8 @@ void dissect_lua(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree) {
expert_add_info_format(pinfo, pi, PI_DEBUG, PI_ERROR ,"Lua Error");
}
+ clear_outstanding_tvbs();
+
lua_pinfo = NULL;
lua_tree = NULL;
lua_tvb = NULL;