aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-time.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-12-16 08:20:22 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-12-16 08:20:22 +0000
commita1defaa4e27294941420a4dc46c01b433bffc5c8 (patch)
tree4a9377a69a3e82b9ce387b19a48d84793afc0057 /epan/dissectors/packet-time.c
parentdf30bf95ea709388998bfac0725c96fa1ae95386 (diff)
From Wesley
fix "decode as" for time protocol https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9563 svn path=/trunk/; revision=54138
Diffstat (limited to 'epan/dissectors/packet-time.c')
-rw-r--r--epan/dissectors/packet-time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-time.c b/epan/dissectors/packet-time.c
index 572e27888b..45aa56680c 100644
--- a/epan/dissectors/packet-time.c
+++ b/epan/dissectors/packet-time.c
@@ -66,8 +66,8 @@ dissect_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
time_tree = proto_item_add_subtree(ti, ett_time);
proto_tree_add_text(time_tree, tvb, 0, 0,
- pinfo->srcport==TIME_PORT ? "Type: Response":"Type: Request");
- if (pinfo->srcport == TIME_PORT) {
+ pinfo->srcport==pinfo->match_uint ? "Type: Response":"Type: Request");
+ if (pinfo->srcport == pinfo->match_uint) {
/* seconds since 1900-01-01 00:00:00 GMT, *not* 1970 */
guint32 delta_seconds = tvb_get_ntohl(tvb, 0);
proto_tree_add_uint_format(time_tree, hf_time_time, tvb, 0, 4,