aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-06-16 00:43:07 -0700
committerGuy Harris <gharris@sonic.net>2021-06-16 08:04:07 +0000
commit18c4baa9f3f22e1352defd6f3bd5edd56d62c970 (patch)
tree5a535e84ca6a5c89960d9f94d99748e72c73b13f
parent18e13337ea0dbeafd1b79d9b19631bd475e01077 (diff)
wslua_tvb: fix documentation for reported_length_remaining().
In the past, tvb_reported_length_remaining(), and thus Tvb:reported_length_remaining(), may have returned -1 if the offset was invalid. That's no longer the case; the former returns 0, and, as the latter just returns the former's return value, that's true of the latter as well. (cherry picked from commit 6c043d5c73e3bdbb84f988a82ebdfc18d77489b9)
-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 3e5c817ecb..6a17168308 100644
--- a/epan/wslua/wslua_tvb.c
+++ b/epan/wslua/wslua_tvb.c
@@ -157,7 +157,7 @@ WSLUA_METHOD Tvb_len(lua_State* L) {
}
WSLUA_METHOD Tvb_reported_length_remaining(lua_State* L) {
- /* Obtain the reported (not captured) length of packet data to end of a <<lua_class_Tvb,`Tvb`>> or -1 if the
+ /* Obtain the reported (not captured) length of packet data to end of a <<lua_class_Tvb,`Tvb`>> or 0 if the
offset is beyond the end of the <<lua_class_Tvb,`Tvb`>>. */
#define Tvb_reported_length_remaining_OFFSET 2 /* offset */
Tvb tvb = checkTvb(L,1);