diff options
author | Evan Huus <eapache@gmail.com> | 2015-06-23 11:24:48 -0700 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2015-06-23 18:25:52 +0000 |
commit | 8bc294c0d12e742d8c539177a683eff16653b31b (patch) | |
tree | 3a309f71e73889bbe39d1df18417c250fa6a686b /epan/dissectors/packet-memcache.c | |
parent | d7b286c7941bb0adf0566844637ffcc245bf1db1 (diff) |
Replace more deprecated tvb_length calls
The return values of new-style dissectors always use the captured length, so
replace those automagically with sed.
Change-Id: Ic43072ee4a80d433cd4264444583a0e670adc26a
Reviewed-on: https://code.wireshark.org/review/9065
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-memcache.c')
-rw-r--r-- | epan/dissectors/packet-memcache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-memcache.c b/epan/dissectors/packet-memcache.c index b969d3c47d..7d30d14d53 100644 --- a/epan/dissectors/packet-memcache.c +++ b/epan/dissectors/packet-memcache.c @@ -606,7 +606,7 @@ dissect_memcache (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* dat val_to_str_const (status, status_vals, "Unknown"), status); } - return tvb_length(tvb); + return tvb_captured_length(tvb); } /* Obtain the content length by peeping into the header. @@ -1916,7 +1916,7 @@ dissect_memcache_tcp (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* dissect_memcache_text (tvb, pinfo, tree); } - return tvb_length(tvb); + return tvb_captured_length(tvb); } /* Dissect udp packets based on the type of protocol (text/binary) */ @@ -1934,7 +1934,7 @@ dissect_memcache_udp (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* dissect_memcache_message (tvb, 0, pinfo, tree); } - return tvb_length(tvb); + return tvb_captured_length(tvb); } /* Registration functions; register memcache protocol, |