aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-git.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-12-22 13:19:38 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-12-22 13:19:38 +0000
commitf4c63552816e689d6e9688768ea448a84537bbe6 (patch)
tree5bcf83f005726c2a200fbf3bf996f56286907a6f /epan/dissectors/packet-git.c
parentfc4d25fcc42df3629c17aee32fac1f653b737bee (diff)
From Alexis La Goutte via bug 5514:
Fix a Git issue. svn path=/trunk/; revision=35243
Diffstat (limited to 'epan/dissectors/packet-git.c')
-rw-r--r--epan/dissectors/packet-git.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-git.c b/epan/dissectors/packet-git.c
index 1896157c7a..5690dbb682 100644
--- a/epan/dissectors/packet-git.c
+++ b/epan/dissectors/packet-git.c
@@ -104,12 +104,10 @@ dissect_git_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (git_tree)
{
- tvbuff_t *subtvb;
proto_tree_add_uint(git_tree, hf_git_packet_len, tvb, offset,
4, plen);
- subtvb = tvb_new_subset(tvb, offset+4, plen-4, plen-4);
- proto_tree_add_item(git_tree, hf_git_packet_data, subtvb, offset+4,
+ proto_tree_add_item(git_tree, hf_git_packet_data, tvb, offset+4,
plen-4, FALSE);
}
}