diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-10-11 14:58:54 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-10-11 14:58:54 +0000 |
commit | e98b54c098e50357d9bd7d31551237b361399103 (patch) | |
tree | f7d4c3e11405fd04969ee36e6defc451315052e1 | |
parent | 17c47d3078f4700440cf96f118a9d18d28be764c (diff) |
Use intended proto_tree_add_uint() instead of proto_tree_add_item() to fix benign bugs (Replaces SVN #39348).
svn path=/trunk/; revision=39359
-rw-r--r-- | epan/dissectors/packet-dtls.c | 4 | ||||
-rw-r--r-- | epan/dissectors/packet-ssl.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dtls.c b/epan/dissectors/packet-dtls.c index 51d8a341c4..440fea0e22 100644 --- a/epan/dissectors/packet-dtls.c +++ b/epan/dissectors/packet-dtls.c @@ -1154,8 +1154,8 @@ dissect_dtls_handshake(tvbuff_t *tvb, packet_info *pinfo, /* add nodes for the message type and message length */ if (ssl_hand_tree) - proto_tree_add_item(ssl_hand_tree, hf_dtls_handshake_type, - tvb, offset, 1, ENC_BIG_ENDIAN); + proto_tree_add_uint(ssl_hand_tree, hf_dtls_handshake_type, + tvb, offset, 1, msg_type); offset++; if (ssl_hand_tree) proto_tree_add_uint(ssl_hand_tree, hf_dtls_handshake_length, diff --git a/epan/dissectors/packet-ssl.c b/epan/dissectors/packet-ssl.c index d54348d8fd..3dd94d90f1 100644 --- a/epan/dissectors/packet-ssl.c +++ b/epan/dissectors/packet-ssl.c @@ -1864,8 +1864,8 @@ dissect_ssl3_handshake(tvbuff_t *tvb, packet_info *pinfo, { /* add nodes for the message type and message length */ if (ssl_hand_tree) - proto_tree_add_item(ssl_hand_tree, hf_ssl_handshake_type, - tvb, offset, 1, ENC_BIG_ENDIAN); + proto_tree_add_uint(ssl_hand_tree, hf_ssl_handshake_type, + tvb, offset, 1, msg_type); offset++; if (ssl_hand_tree) proto_tree_add_uint(ssl_hand_tree, hf_ssl_handshake_length, |