aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-08-11 13:45:42 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-08-11 13:45:42 +0000
commit23c516516905abd244f5937806a110793b35a366 (patch)
tree15efd1a279a44022afea067b095be25259feb575 /epan/wslua
parent93ebb2d9362369b8897e6c57346ce44fc1fd2795 (diff)
Clarify that Tvb_reported_length_remaining may return -1
svn path=/trunk/; revision=38485
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/wslua_tvb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_tvb.c b/epan/wslua/wslua_tvb.c
index 6697ed0211..041a8c3650 100644
--- a/epan/wslua/wslua_tvb.c
+++ b/epan/wslua/wslua_tvb.c
@@ -479,7 +479,7 @@ WSLUA_METHOD Tvb_len(lua_State* L) {
}
WSLUA_METHOD Tvb_reported_length_remaining(lua_State* L) {
- /* Obtain the reported length of packet data to end of a TVB */
+ /* Obtain the reported length of packet data to end of a TVB or -1 if the offset is beyond the end of the TVB */
#define Tvb_reported_length_remaining_OFFSET 2 /* offset */
Tvb tvb = checkTvb(L,1);
int offset = luaL_optint(L, Tvb_reported_length_remaining_OFFSET, 0);