As per suggestion of Mike Morrin via
authorEvan Huus <eapache@gmail.com>
Wed, 20 Nov 2013 22:34:36 +0000 (22:34 -0000)
committerEvan Huus <eapache@gmail.com>
Wed, 20 Nov 2013 22:34:36 +0000 (22:34 -0000)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9406

The GSM CBCH assertion should be <= 48 not <48. Fixes one of the failing
assertions with the capture from that bug.

svn path=/trunk/; revision=53453

epan/dissectors/packet-gsm_cbch.c

index 28959a938936f12778a16d9e063c692370d79e14..8117ffb284c36b672ff59621bf3657ad5021db0e 100644 (file)
@@ -195,7 +195,7 @@ dissect_schedule_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *top_tree
             sched_subtree = proto_item_add_subtree(item, ett_schedule_new_msg);
             for (i=0; i<k; i++)
             {
-                DISSECTOR_ASSERT(new_slots[i] < 48);
+                DISSECTOR_ASSERT(new_slots[i] <= 48);
                 octet1 = tvb_get_guint8(tvb, offset);
                 if ((octet1 & 0x80) == 0x80)
                 {