diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-06-25 15:24:55 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-06-25 15:24:55 +0000 |
commit | 0f24c1eb092d2f960657dd01033084ad57288aed (patch) | |
tree | 92179eac5eb64248e9f62fe28e8f5b777447f9e3 | |
parent | 08c7a1d0f11e84f71a1b5a826ee2b1675fc11c7d (diff) | |
download | wireshark-0f24c1eb092d2f960657dd01033084ad57288aed.tar.gz wireshark-0f24c1eb092d2f960657dd01033084ad57288aed.tar.bz2 wireshark-0f24c1eb092d2f960657dd01033084ad57288aed.zip |
From Tony Trinh via bug 5894:
Added argument validation to Pref.range.
svn path=/trunk/; revision=37785
-rw-r--r-- | epan/wslua/wslua_proto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c index cec86ef865..668380fb0b 100644 --- a/epan/wslua/wslua_proto.c +++ b/epan/wslua/wslua_proto.c @@ -40,7 +40,7 @@ WSLUA_CLASS_DEFINE(Pref,NOP,NOP); /* A preference of a Protocol. */ static range_t* get_range(lua_State *L, int idx_r, int idx_m) { static range_t *ret; - range_convert_str(&ret,g_strdup(lua_tostring(L, idx_r)),(guint32)lua_tonumber(L, idx_m)); + range_convert_str(&ret,g_strdup(luaL_checkstring(L, idx_r)),(guint32)lua_tonumber(L, idx_m)); return ret; } |