Fix benign bugs in some proto_tree_add_item() 'encoding' args;
authorBill Meier <wmeier@newsguy.com>
Mon, 10 Oct 2011 21:53:15 +0000 (21:53 -0000)
committerBill Meier <wmeier@newsguy.com>
Mon, 10 Oct 2011 21:53:15 +0000 (21:53 -0000)
svn path=/trunk/; revision=39348

epan/dissectors/packet-dtls.c
epan/dissectors/packet-ssl.c

index 677841c6aff730f44160d1840367127e0982b676..51d8a341c4f8e525ae44b6650875292500e1068a 100644 (file)
@@ -1155,7 +1155,7 @@ 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, msg_type);
+                                tvb, offset, 1, ENC_BIG_ENDIAN);
           offset++;
           if (ssl_hand_tree)
             proto_tree_add_uint(ssl_hand_tree, hf_dtls_handshake_length,
index 7de7e6f82d6fc6d4b4b75a6e0cc3f606e65c45cc..d54348d8fd1f6b20e0b3c4ce63862dd293d5fe3f 100644 (file)
@@ -1245,7 +1245,7 @@ process_ssl_payload(tvbuff_t *tvb, volatile int offset, packet_info *pinfo,
 
     if (association && association->handle) {
         ssl_debug_printf("dissect_ssl3_record found association %p\n", (void *)association);
-        
+
       if (dissector_try_heuristic(ssl_heur_subdissector_list, next_tvb,
                                  pinfo, proto_tree_get_root(tree))) {
       } else {
@@ -1865,7 +1865,7 @@ 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, msg_type);
+                                    tvb, offset, 1, ENC_BIG_ENDIAN);
             offset++;
             if (ssl_hand_tree)
                 proto_tree_add_uint(ssl_hand_tree, hf_ssl_handshake_length,