Only add the priority level if it is set inside valid range.
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 24 Nov 2011 12:44:11 +0000 (12:44 +0000)
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 24 Nov 2011 12:44:11 +0000 (12:44 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39997 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-rlc-lte.c

index 4d93bd50fbd07c2b52656da81c174708411c1a2d..52319793403db9d2128a6139bf0234ff130522e5 100644 (file)
@@ -2454,9 +2454,11 @@ static void dissect_rlc_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         PROTO_ITEM_SET_GENERATED(ti);
     }
 
-    ti = proto_tree_add_uint(context_tree, hf_rlc_lte_context_priority,
-                             tvb, 0, 0, p_rlc_lte_info->priority);
-    PROTO_ITEM_SET_GENERATED(ti);
+    if ((p_rlc_lte_info->priority >= 1) && (p_rlc_lte_info->priority <=16)) {
+        ti = proto_tree_add_uint(context_tree, hf_rlc_lte_context_priority,
+                                 tvb, 0, 0, p_rlc_lte_info->priority);
+        PROTO_ITEM_SET_GENERATED(ti);
+    }
 
     ti = proto_tree_add_uint(context_tree, hf_rlc_lte_context_channel_type,
                              tvb, 0, 0, p_rlc_lte_info->channelType);