summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-nfs.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-03-31 11:01:06 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-03-31 11:01:06 +0000
commit0b8be02229b70bcd4a3f2b6edf90b0fb619000df (patch)
tree6939cf48cef0fa84076643c2acae0fc40c47e190 /epan/dissectors/packet-nfs.c
parenta3fe8fbd1a92ae375a61d49bdb1dea10c6cbc756 (diff)
downloadwireshark-0b8be02229b70bcd4a3f2b6edf90b0fb619000df.tar.gz
Use correct length for clientaddr4 callback address entry.
svn path=/trunk/; revision=36411
Diffstat (limited to 'epan/dissectors/packet-nfs.c')
-rw-r--r--epan/dissectors/packet-nfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c
index a4a666a5cf..6b4d665ecb 100644
--- a/epan/dissectors/packet-nfs.c
+++ b/epan/dissectors/packet-nfs.c
@@ -7945,7 +7945,7 @@ dissect_nfs_clientaddr4(tvbuff_t *tvb, int offset, proto_tree *tree)
&b1, &b2, &b3, &b4, &b5, &b6) == 6) {
/* IPv4: h1.h2.h3.h4.p1.p2 */
port = (b5<<8) | b6;
- proto_tree_add_text(tree, tvb, addr_offset, offset,
+ proto_tree_add_text(tree, tvb, addr_offset, offset-addr_offset,
"[callback IPv4 address %u.%u.%u.%u, protocol=%s, port=%u]",
b1, b2, b3, b4, protocol, port);
} else if (universal_ip_address && sscanf(universal_ip_address, "%u.%u",
@@ -7958,7 +7958,7 @@ dissect_nfs_clientaddr4(tvbuff_t *tvb, int offset, proto_tree *tree)
"%2x:%2x:%2x:%2x:%2x:%2x:%2x:%2x.%u.%u",
&b1, &b2, &b3, &b4, &b5, &b6, &b7, &b8, &b9, &b10) == 10) {
port = (b9<<8) | b10;
- proto_tree_add_text(tree, tvb, addr_offset, offset,
+ proto_tree_add_text(tree, tvb, addr_offset, offset-addr_offset,
"[callback IPv6 address %2x:%2x:%2x:%2x:%2x:%2x:%2x:%2x, protocol=%s, port=%u]",
b1, b2, b3, b4, b5, b6, b7, b8, protocol, port);
} else {