Corosync : fix encoding args (for proto_tree_add_item)

Change-Id: I908046c04df7f7218627330f64040fafbce6739e
Reviewed-on: https://code.wireshark.org/review/3689
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2014-08-15 19:57:12 +02:00 committed by Anders Broman
parent 82d8877b37
commit 5833d6be14
2 changed files with 5 additions and 5 deletions

View File

@ -92,15 +92,15 @@ dissect_corosync_totemnet_security_header(tvbuff_t *tvb,
if (parent_tree)
{
item = proto_tree_add_item(parent_tree, proto_corosync_totemnet, tvb, 0,
-1, FALSE);
-1, ENC_NA);
tree = proto_item_add_subtree(item, ett_corosync_totemnet_security_header);
proto_tree_add_item(tree,
hf_corosync_totemnet_security_header_hash_digest,
tvb, 0, HMAC_HASH_SIZE, FALSE);
tvb, 0, HMAC_HASH_SIZE, ENC_NA);
proto_tree_add_item(tree,
hf_corosync_totemnet_security_header_salt,
tvb, HMAC_HASH_SIZE, SALT_SIZE, FALSE);
tvb, HMAC_HASH_SIZE, SALT_SIZE, ENC_NA);
if (check_crypt_type)
{
@ -109,7 +109,7 @@ dissect_corosync_totemnet_security_header(tvbuff_t *tvb,
proto_tree_add_item(tree,
hf_corosync_totemnet_security_crypto_type,
tvb, io_len - 1, 1, FALSE);
tvb, io_len - 1, 1, ENC_NA);
key_item = proto_tree_add_string(tree,
hf_corosync_totemnet_security_crypto_key,
tvb, 0, 0, key);

View File

@ -295,7 +295,7 @@ dissect_corosync_totemsrp_ip_address(tvbuff_t *tvb,
padding_len = (gint)(sizeof(struct e_in6_addr) - len);
proto_tree_add_item (tree, hf_corosync_totemsrp_ip_address_addr4_padding,
tvb, offset, padding_len, FALSE);
tvb, offset, padding_len, ENC_NA);
offset += padding_len;
}