aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_tvb.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2013-12-23 12:19:16 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2013-12-23 12:19:16 +0000
commite8e3f1011b4d9baadea1ed6a04457d8159150684 (patch)
tree7efd5e770fd1ca3e0f9dcd11e7430f54e50fa7de /epan/wslua/wslua_tvb.c
parent27409e8f2eee299b61ae3acd085088b4e5a151be (diff)
Removed a wrong sanity check in ByteArray base64_decode.
svn path=/trunk/; revision=54379
Diffstat (limited to 'epan/wslua/wslua_tvb.c')
-rw-r--r--epan/wslua/wslua_tvb.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/epan/wslua/wslua_tvb.c b/epan/wslua/wslua_tvb.c
index ba46f604f6..d724fb8868 100644
--- a/epan/wslua/wslua_tvb.c
+++ b/epan/wslua/wslua_tvb.c
@@ -259,11 +259,6 @@ static int ByteArray_base64_decode(lua_State* L) {
if (!ba) return 0;
- if (!lua_tvb) {
- luaL_error(L,"Tvbs can only be created and used in dissectors");
- return 0;
- }
-
ba2 = g_byte_array_new();
data = (gchar*)g_malloc (ba->len + 1);
memcpy(data, ba->data, ba->len);