aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-06-01 18:59:29 -0700
committerGuy Harris <gharris@sonic.net>2021-06-02 02:17:47 +0000
commitf27e6c041c2531710fa2fb0b18e900db96bfe7cc (patch)
tree03200d491ab2b9d33b71e1d62a35250c44c9142f
parent48fda769c91400ae96d36f0f201bac9e7a7a82a0 (diff)
downloadwireshark-f27e6c041c2531710fa2fb0b18e900db96bfe7cc.tar.gz
wireshark-f27e6c041c2531710fa2fb0b18e900db96bfe7cc.tar.bz2
wireshark-f27e6c041c2531710fa2fb0b18e900db96bfe7cc.zip
pcapng: set the length of the options item.
It runs up to either the end of the option data or the terminating end-of-options option (readers MUST handle lists of options that contains an end-of-options option and lists of options that don't). (cherry picked from commit 2f5c0ffdb26d753943201029ff65e237c1a9776b)
-rw-r--r--epan/dissectors/file-pcapng.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/file-pcapng.c b/epan/dissectors/file-pcapng.c
index 7a008722f5..e97b06fbe2 100644
--- a/epan/dissectors/file-pcapng.c
+++ b/epan/dissectors/file-pcapng.c
@@ -1229,6 +1229,7 @@ static gint dissect_options(proto_tree *tree, packet_info *pinfo,
proto_item_append_text(option_item, " = %s", str);
}
+ proto_item_set_end(options_item, tvb, offset);
return offset;
}