aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sctp.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-05-19 20:21:08 +0000
committerBill Meier <wmeier@newsguy.com>2011-05-19 20:21:08 +0000
commit01a13cc082bbc5e9866dbc4ebedb9ecc2af83ce7 (patch)
tree8a56d61032af7b114636ff3973c397d256a5a9cd /epan/dissectors/packet-sctp.c
parent8b701e108a91fd55413ed7b98072b055180a9bf3 (diff)
Don't assign to an unused 'proto item *': Coverity 1033 & 906
svn path=/trunk/; revision=37308
Diffstat (limited to 'epan/dissectors/packet-sctp.c')
-rw-r--r--epan/dissectors/packet-sctp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-sctp.c b/epan/dissectors/packet-sctp.c
index 4484c61b21..0cb2688f28 100644
--- a/epan/dissectors/packet-sctp.c
+++ b/epan/dissectors/packet-sctp.c
@@ -2771,8 +2771,8 @@ dissect_data_chunk(tvbuff_t *chunk_tvb,
* almost certainly not understand the data.
*/
if (b_bit) {
- if (!is_retransmission)
- call_subdissector = TRUE;
+ if (!is_retransmission)
+ call_subdissector = TRUE;
} else
return FALSE;
}
@@ -3091,7 +3091,6 @@ dissect_nr_sack_chunk(packet_info* pinfo, tvbuff_t *chunk_tvb, proto_tree *chunk
proto_tree *block_tree;
proto_tree *flags_tree;
proto_item *ctsa_item;
- proto_item *num_of_gap_blocks;
proto_tree *acks_tree;
guint32 tsns_gap_acked = 0;
guint32 tsns_nr_gap_acked = 0;
@@ -3103,7 +3102,7 @@ dissect_nr_sack_chunk(packet_info* pinfo, tvbuff_t *chunk_tvb, proto_tree *chunk
ctsa_item = proto_tree_add_item(chunk_tree, hf_nr_sack_chunk_cumulative_tsn_ack, chunk_tvb, NR_SACK_CHUNK_CUMULATIVE_TSN_ACK_OFFSET, NR_SACK_CHUNK_CUMULATIVE_TSN_ACK_LENGTH, ENC_BIG_ENDIAN);
proto_tree_add_item(chunk_tree, hf_nr_sack_chunk_adv_rec_window_credit, chunk_tvb, NR_SACK_CHUNK_ADV_REC_WINDOW_CREDIT_OFFSET, NR_SACK_CHUNK_ADV_REC_WINDOW_CREDIT_LENGTH, ENC_BIG_ENDIAN);
- num_of_gap_blocks = proto_tree_add_item(chunk_tree, hf_nr_sack_chunk_number_of_gap_blocks, chunk_tvb, NR_SACK_CHUNK_NUMBER_OF_GAP_BLOCKS_OFFSET, NR_SACK_CHUNK_NUMBER_OF_GAP_BLOCKS_LENGTH, ENC_BIG_ENDIAN);
+ proto_tree_add_item(chunk_tree, hf_nr_sack_chunk_number_of_gap_blocks, chunk_tvb, NR_SACK_CHUNK_NUMBER_OF_GAP_BLOCKS_OFFSET, NR_SACK_CHUNK_NUMBER_OF_GAP_BLOCKS_LENGTH, ENC_BIG_ENDIAN);
proto_tree_add_item(chunk_tree, hf_nr_sack_chunk_number_of_nr_gap_blocks, chunk_tvb, NR_SACK_CHUNK_NUMBER_OF_NR_GAP_BLOCKS_OFFSET, NR_SACK_CHUNK_NUMBER_OF_NR_GAP_BLOCKS_LENGTH, ENC_BIG_ENDIAN);
proto_tree_add_item(chunk_tree, hf_nr_sack_chunk_number_of_dup_tsns, chunk_tvb, NR_SACK_CHUNK_NUMBER_OF_DUP_TSNS_OFFSET, NR_SACK_CHUNK_NUMBER_OF_DUP_TSNS_LENGTH, ENC_BIG_ENDIAN);