diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2016-11-30 18:00:12 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-12-02 21:48:00 +0000 |
commit | 54f48c8b92475523a49c15cd549fb5408e96ea8d (patch) | |
tree | cf1ddf9e52a2fa80191db690dc530045739e06f5 /epan/dissectors/packet-echo.c | |
parent | 14bae88e0f7827ccf470704a9b997dfd5e665319 (diff) |
echo: decide on req/resp based on matched port
Since the use of 'Decode as' can result in another port number than the
default port (7) being the service port, this should be checked against.
Change-Id: I93383613115595fff621e2fb9ab7959cd448c01e
Reviewed-on: https://code.wireshark.org/review/18991
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-echo.c')
-rw-r--r-- | epan/dissectors/packet-echo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-echo.c b/epan/dissectors/packet-echo.c index 591c8811ee..0058461f26 100644 --- a/epan/dissectors/packet-echo.c +++ b/epan/dissectors/packet-echo.c @@ -48,7 +48,7 @@ static int dissect_echo(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi int offset = 0; gboolean request = FALSE; - if (pinfo->destport == ECHO_PORT) { + if (pinfo->destport == pinfo->match_uint) { request = TRUE; } |