aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nfs.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-31 11:01:06 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-31 11:01:06 +0000
commit3e5bca541ca68667a1d6cf170caacdd0a0b840f9 (patch)
tree6939cf48cef0fa84076643c2acae0fc40c47e190 /epan/dissectors/packet-nfs.c
parentae81f549fba9331f10aca29e7b0fdf38e469ef86 (diff)
Use correct length for clientaddr4 callback address entry.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36411 f5534014-38df-0310-8fa8-9805f1628bb7
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 {