aboutsummaryrefslogtreecommitdiffstats
path: root/epan/protobuf_lang.y
diff options
context:
space:
mode:
authorHuang Qiangxiong <qiangxiong.huang@qq.com>2019-10-08 23:35:34 +0800
committerAnders Broman <a.broman58@gmail.com>2019-10-14 06:47:30 +0000
commit62101950f3be2c54f06d4a3e138c4b0000a4f58a (patch)
tree8816a2eb44e691090e0db205baf4a86eddf601ab /epan/protobuf_lang.y
parentc797e94b33f7b27ddcf46a1a79308dabdd5dc414 (diff)
Protobuf: Add show_details preferences. Fix two bugs.
1. Add show_details preferences. Disable it will hidden names of message/field/enum, field number, and other details. 2. Have only one popup message with all the errors listed, that are found during parsing .proto files. (Buffer errors and print once) Loading .proto files and checking message types of UDP port will be done only when protobuf dissector has been called. 3. Support parsing .proto files in legacy MAC file format (that newline is '\r') or mixed newline (\r + \n) file format. Change-Id: I97bcde000957e4cd1cce98a7f61120d03027423e Reviewed-on: https://code.wireshark.org/review/34736 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/protobuf_lang.y')
-rw-r--r--epan/protobuf_lang.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/protobuf_lang.y b/epan/protobuf_lang.y
index 78e73c8188..d07ad92205 100644
--- a/epan/protobuf_lang.y
+++ b/epan/protobuf_lang.y
@@ -606,7 +606,7 @@ int run_pbl_parser(pbl_descriptor_pool_t* pool, gboolean debug)
status = protobuf_langparse(scanner, &state);
fclose(fp);
if (status != 0) {
- protobuf_langerrorv(NULL, &state, "Parsing grammers failed!\n");
+ /* grammar errors should have been reported during parsing */
pbl_clear_state(&state);
return status;
}