aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mysql.c
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2018-08-26 18:36:39 +0200
committerAnders Broman <a.broman58@gmail.com>2018-08-31 05:24:50 +0000
commit9a71ec042e68743ad709ae1b8b718985d4c79450 (patch)
tree1cd05ef918186ce6a37dc6e03e9e831852e05bdc /epan/dissectors/packet-mysql.c
parent5c36f6166c30b586be3e6cc600f58e1eb5830eb7 (diff)
MySQL: decode responses for more requests in a row
Capture file of Bug 15074 lists two requests in a row. Only the first response gets dissected. The second one not. This commit defaults to mysql_dissect_result_header() for response packets. The documentation [1] doesn't provide any useful information how to handle this. [1]: https://dev.mysql.com/doc/dev/mysql-server/latest/PAGE_PROTOCOL.html Ping-Bug: 15074 Change-Id: I77c269dd95859bc26e12c6b89cedaac9b6047d9f Reviewed-on: https://code.wireshark.org/review/29349 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mysql.c')
-rw-r--r--epan/dissectors/packet-mysql.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mysql.c b/epan/dissectors/packet-mysql.c
index 4035941c47..3f99689686 100644
--- a/epan/dissectors/packet-mysql.c
+++ b/epan/dissectors/packet-mysql.c
@@ -1716,6 +1716,7 @@ mysql_dissect_response(tvbuff_t *tvb, packet_info *pinfo, int offset,
break;
case RESPONSE_TABULAR:
+ case REQUEST: /* That shouldn't be the case; maybe two requests in a row (s. bug 15074) */
offset = mysql_dissect_result_header(tvb, pinfo, offset, tree, conn_data);
break;