aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wai.c
diff options
context:
space:
mode:
authorcmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>2011-05-12 17:19:10 +0000
committercmaynard <cmaynard@f5534014-38df-0310-8fa8-9805f1628bb7>2011-05-12 17:19:10 +0000
commit56017160bf3e1fe0e52bef889d11e8ce9ac805ee (patch)
tree6a7f9439327875b1ebb09dd858cc48bb5a9109f3 /epan/dissectors/packet-wai.c
parent5e3ab66bc265a7a6302b863e0aea193f15418789 (diff)
Use nonce_2_item instead of incorrect nonce_1_item. Fixes Coverity CID 1071.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37086 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-wai.c')
-rw-r--r--epan/dissectors/packet-wai.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-wai.c b/epan/dissectors/packet-wai.c
index 3848315a26..9c993424d8 100644
--- a/epan/dissectors/packet-wai.c
+++ b/epan/dissectors/packet-wai.c
@@ -455,10 +455,10 @@ dissect_multiple_certificate(tvbuff_t * tvb, guint offset, proto_tree *tree)
offset += 2;
nonce_1_item = proto_tree_add_item(multicert_tree, hf_wai_nonce, tvb, offset, 32, FALSE);
offset += 32;
- proto_item_append_text(nonce_1_item, " %d", 1);
+ proto_item_append_text(nonce_1_item, " 1");
nonce_2_item = proto_tree_add_item(multicert_tree, hf_wai_nonce, tvb, offset, 32, FALSE);
offset += 32;
- proto_item_append_text(nonce_1_item, " %d", 2);
+ proto_item_append_text(nonce_2_item, " 2");
proto_tree_add_item(multicert_tree, hf_wai_ver_res, tvb, offset, 1, FALSE);
offset++;
offset += dissect_certificate(tvb, offset, multicert_tree, "1 ");