The DNS name data starts at the beginning of the suboption data, not the

beginning of the suboption.

svn path=/trunk/; revision=13886
This commit is contained in:
Guy Harris 2005-03-23 21:42:40 +00:00
parent 4b29cdad3c
commit 7176376813

View file

@ -2533,7 +2533,7 @@ dissect_packetcable_ietf_ccc(proto_tree *v_tree, tvbuff_t *tvb, int optoff,
switch (prov_type) {
case 0:
/* XXX - check suboption length */
get_dns_name(tvb, optoff, suboptoff, dns_name,
get_dns_name(tvb, suboptoff, suboptoff, dns_name,
sizeof(dns_name));
g_string_sprintfa(opt_str, "%s (%u byte%s)", dns_name,
subopt_len - 1, plurality(subopt_len, "", "s") );
@ -2613,7 +2613,7 @@ dissect_packetcable_ietf_ccc(proto_tree *v_tree, tvbuff_t *tvb, int optoff,
case PKT_CCC_KRB_REALM: /* String values */
/* XXX - check suboption length */
get_dns_name(tvb, optoff, suboptoff, dns_name, sizeof(dns_name));
get_dns_name(tvb, suboptoff, suboptoff, dns_name, sizeof(dns_name));
g_string_sprintfa(opt_str, "%s (%u byte%s)", dns_name,
subopt_len, plurality(subopt_len, "", "s") );
proto_tree_add_text(v_tree, tvb, optoff, subopt_len + 2, opt_str->str);