diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2008-01-22 06:49:49 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2008-01-22 06:49:49 +0000 |
commit | 17a358e19c63e418b841108f095c4fe70b04093d (patch) | |
tree | 8c1a60532f47ae3831f48463d119caf01eb2e3c2 /epan/dissectors/packet-acn.c | |
parent | c856acafbde9bdecf910be998a55594816b9358a (diff) |
From Bill Florac:
When dissecting any message containing a "transport layer address", if the
address was NULL (which is valid), the offset pointer was not incremented by 1
and the remaining fields would not be dissected correctly.
svn path=/trunk/; revision=24162
Diffstat (limited to 'epan/dissectors/packet-acn.c')
-rw-r--r-- | epan/dissectors/packet-acn.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-acn.c b/epan/dissectors/packet-acn.c index abc6934d8b..9573bccac0 100644 --- a/epan/dissectors/packet-acn.c +++ b/epan/dissectors/packet-acn.c @@ -476,6 +476,8 @@ acn_add_address(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int off switch (ip_address_type) { case ACN_ADDR_NULL: + proto_tree_add_item(tree, hf_acn_ip_address_type, tvb, offset, 1, FALSE); + offset += 1; break; case ACN_ADDR_IPV4: /* Build tree and add type*/ @@ -2647,7 +2649,7 @@ void proto_register_acn(void) /* Address Type */ /* PDU flags*/ { &hf_acn_ip_address_type, - { "Type", "acn.ip_address_type", + { "Addr Type", "acn.ip_address_type", FT_UINT8, BASE_DEC, VALS(acn_ip_address_type_vals), 0x0, NULL, HFILL } }, |