(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-inap.c) |
| |
| 9102 | | | proto_item_set_expert_flags(cause, PI_MALFORMED, PI_WARN); |
| 9103 | | | expert_add_info_format(actx->pinfo, cause, PI_MALFORMED, PI_WARN, "Unknown returnResultData %d",opcode); |
| 9104 | | | } |
| 9105 | | | return offset; |
| 9106 | | | } |
| 9107 | | | |
| 9108 | | | |
| 9109 | | | static int dissect_returnErrorData(proto_tree *tree, tvbuff_t *tvb, int offset,asn1_ctx_t *actx) { |
| 9110 | | | proto_item *cause; |
| 9111 | | | |
| 9112 | | | switch(errorCode) { |
Empty switch Statement
Body of switch has no effect. This warning could be triggered if: - the body contains no code, or
- all cases share the same code, or
- the body is removed by the preprocessor, or
- all the macros used in the body expand to nothing.
|
|
| 9113 | | | |
| 9114 | | | default: |
| 9115 | | | cause=proto_tree_add_text(tree, tvb, offset, -1, "Unknown returnErrorData blob"); |
| 9116 | | | proto_item_set_expert_flags(cause, PI_MALFORMED, PI_WARN); |
| 9117 | | | expert_add_info_format(actx->pinfo, cause, PI_MALFORMED, PI_WARN, "Unknown returnErrorData %d",errorCode); |
| 9118 | | | } |
| 9119 | | | return offset; |
| 9120 | | | } |
| 9121 | | | |
| 9122 | | | |
| |