diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-12-12 10:14:26 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-12-12 12:56:31 +0000 |
commit | a2a6e3153297ad13ef0855065931ed6e93db2c6a (patch) | |
tree | bd8c4730d83213cfe19407f7f674ce0a213c114f /epan/dissectors/packet-riemann.c | |
parent | bd4d291d1ba512521b16a863a7ad71690e7ad608 (diff) |
Riemann: fix "Decode as" feature
the UDP port value check seems useless when the port is configured in the preferences, and prevents "Decode as" to work as expected
Change-Id: I5a059d05a9e980c2c60d8f84deae1b5bd9d466d3
Reviewed-on: https://code.wireshark.org/review/5727
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-riemann.c')
-rw-r--r-- | epan/dissectors/packet-riemann.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-riemann.c b/epan/dissectors/packet-riemann.c index 84345e4a7b..8a5c2ab125 100644 --- a/epan/dissectors/packet-riemann.c +++ b/epan/dissectors/packet-riemann.c @@ -608,8 +608,7 @@ is_riemann(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree _U_, void *data _ guint64 tag, field_number, wire_format; guint len; - if ((pinfo->destport != udp_port_pref) || - (reported_length < riemann_MIN_LENGTH) || + if ((reported_length < riemann_MIN_LENGTH) || (captured_length < MAX_NEEDED_FOR_HEURISTICS)) { return FALSE; } |