diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-12-31 12:20:55 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-12-31 15:00:12 +0000 |
commit | aeb10b9156d58461ca784e7ce9cbf247dcb4d9a1 (patch) | |
tree | 1a0c344011ec3ca46c808788d62741e3e01bf51b /epan/dissectors/packet-mount.c | |
parent | 7c93e8155189344ab2e559e485c9f5cf7451c461 (diff) |
mount: fix Copy-paste error (CID 1224605)
Don't longer need to check if(tree)
Change-Id: I4ec572df28bad3c487c3c744840d97b79781feb3
Reviewed-on: https://code.wireshark.org/review/6164
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-mount.c')
-rw-r--r-- | epan/dissectors/packet-mount.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/epan/dissectors/packet-mount.c b/epan/dissectors/packet-mount.c index dacb2195b4..cd7caf8912 100644 --- a/epan/dissectors/packet-mount.c +++ b/epan/dissectors/packet-mount.c @@ -299,11 +299,9 @@ dissect_exportlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr hf_mount_exportlist_directory, offset, &directory); groups_offset = offset; - if (tree) { - groups_item = proto_tree_add_item(exportlist_tree, hf_mount_groups, tvb, - offset, -1, ENC_NA); - groups_tree = proto_item_add_subtree(groups_item, ett_mount_groups); - } + groups_item = proto_tree_add_item(exportlist_tree, hf_mount_groups, tvb, offset, -1, ENC_NA); + groups_tree = proto_item_add_subtree(groups_item, ett_mount_groups); + offset = dissect_rpc_list(tvb, pinfo, groups_tree, offset, dissect_group, NULL); |