x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-wsp.c |
| |
1934 | #define wkh_4_End(hf) /* End of value parsing */ \ |
1935 | /* END */ \ |
1936 | } \ |
1937 | /* Check for errors */ \ |
1938 | if (! ok) { \ |
1939 | if (ti) { /* Append to protocol tree item label */ \ |
1940 | proto_item_append_text(ti, \ |
1941 | " <Error: Invalid value>"); \ |
1942 | } else if (hf > 0) { /* Create protocol tree item */ \ |
1943 | tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start); \ |
1944 | proto_tree_add_string(tree, hf, \ |
1945 | tvb, hdr_start, offset - hdr_start, \ |
1946 | " <Error: Invalid value>"); \ |
1947 | } else { /* Create anonymous field entry */ \ |
1948 | tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start); \ |
1949 | proto_tree_add_text(tree, tvb, hdr_start, offset - hdr_start, \ |
1950 | "%s: <Error: Invalid value>", \ |
1951 | val_to_str (hdr_id, vals_field_names, \ |
1952 | "<Unknown WSP field 0x%02X>")); \ |
1953 | } \ |
1954 | } \ |
1955 | return offset; |
| |