Tighten field array check to avoid printing problems.
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 26 Nov 2008 07:25:18 +0000 (07:25 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 26 Nov 2008 07:25:18 +0000 (07:25 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26849 f5534014-38df-0310-8fa8-9805f1628bb7

epan/proto.c

index e67271cf575b6637127c001fac414c986938cf6a..594884bf323535e42e4968866a9896b306843add 100644 (file)
@@ -3840,7 +3840,10 @@ static void tmp_fld_check_assert(header_field_info *hfinfo) {
                break;
 
        case FT_FRAMENUM:
-               /* Don't allow bitfields or value strings for frame numbers */
+       case FT_STRING:
+       case FT_STRINGZ:
+       case FT_EBCDIC:
+               /* Don't allow bitfields or value strings for frame numbers and strings */
                DISSECTOR_ASSERT(hfinfo->bitmask == 0);
                DISSECTOR_ASSERT(hfinfo->strings == NULL);
                break;