diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2008-01-25 21:31:50 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2008-01-25 21:31:50 +0000 |
commit | c944d49dd6d51538bdb79ec9a11e17ceb4201036 (patch) | |
tree | 0b0a0637e58f019631027655e7d81954377a41ba /epan | |
parent | f0582373ef15700230cd2578a377ae97e5cc6e13 (diff) |
From Bill Florac:
Corrected ATTRRPLY dissection.
Removed a few unnecessary semi-colons.
svn path=/trunk/; revision=24193
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-srvloc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/epan/dissectors/packet-srvloc.c b/epan/dissectors/packet-srvloc.c index c93bb609c7..9a6ae53781 100644 --- a/epan/dissectors/packet-srvloc.c +++ b/epan/dissectors/packet-srvloc.c @@ -907,7 +907,7 @@ dissect_srvloc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset = dissect_url_entry_v1(tvb, offset, srvloc_tree, encoding, flags); count--; - }; + } break; case SRVREG: @@ -1058,13 +1058,13 @@ dissect_srvloc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) add_v1_string(srvloc_tree, hf_srvloc_srvtyperply_srvtype, tvb, offset, length, encoding); offset += length; count--; - }; + } break; default: expert_item = proto_tree_add_text(srvloc_tree, tvb, offset, -1, "Unknown Function Type"); expert_add_info_format(pinfo, expert_item, PI_RESPONSE_CODE, PI_ERROR, "Unknown Function Type: %d", function); - }; + } } else { /* Version 2 */ length = tvb_get_ntoh24(tvb, offset + 2); @@ -1258,13 +1258,13 @@ dissect_srvloc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (length) { attr_list2(srvloc_tree, hf_srvloc_attrrply_attrlist, tvb, offset, length, CHARSET_UTF_8); offset += length; - count = tvb_get_guint8(tvb, offset); - proto_tree_add_uint(srvloc_tree, hf_srvloc_attrrply_attrauthcount, tvb, offset, 1, count); - offset += 1; - while (count > 0) { - offset = dissect_attrauthblk_v2(tvb, offset, srvloc_tree); - count--; - } + } + count = tvb_get_guint8(tvb, offset); + proto_tree_add_uint(srvloc_tree, hf_srvloc_attrrply_attrauthcount, tvb, offset, 1, count); + offset += 1; + while (count > 0) { + offset = dissect_attrauthblk_v2(tvb, offset, srvloc_tree); + count--; } break; |