Test before comitting...

svn path=/trunk/; revision=20883
This commit is contained in:
Anders Broman 2007-02-20 21:58:30 +00:00
parent dd7323f981
commit fd3aa71e67
1 changed files with 3 additions and 3 deletions

View File

@ -4376,7 +4376,7 @@ decode_ie(bssgp_ie_t *ie, build_info_t *bi) {
gboolean use_default_ie_name = (ie->name == NULL);
if (tvb_length_remaining(bi->tvb, bi->offset) < 1) {
proto_tree_add_none_format(bi->bssgp_tree, -1, bi->tvb, 0, -1, "[tvb_length_remaining] length remaining: %d", tvb_length_remaining(bi->tvb, bi->offset));
proto_tree_add_none_format(bi->bssgp_tree, NULL, bi->tvb, 0, -1, "[tvb_length_remaining] length remaining: %d", tvb_length_remaining(bi->tvb, bi->offset));
return;
}
switch (ie->format) {
@ -4384,7 +4384,7 @@ decode_ie(bssgp_ie_t *ie, build_info_t *bi) {
if (!check_correct_iei(ie, bi)) {
#ifdef BSSGP_DEBUG
/* TODO This code does not work well with omitted Optional elements */
proto_tree_add_none_format(bi->bssgp_tree, -1, bi->tvb, 0, -1, "[BSSGP_IE_FORMAT_TLV] format: %d", ie->format);
proto_tree_add_none_format(bi->bssgp_tree, NULL, bi->tvb, 0, -1, "[BSSGP_IE_FORMAT_TLV] format: %d", ie->format);
#endif
return;
}
@ -4396,7 +4396,7 @@ decode_ie(bssgp_ie_t *ie, build_info_t *bi) {
if (!check_correct_iei(ie, bi)) {
#ifdef BSSGP_DEBUG
/* TODO This code does not work well with omitted Optional elements */
proto_tree_add_none_format(bi->bssgp_tree, -1, bi->tvb, 0, -1, "[BSSGP_IE_FORMAT_TV] format: %d", ie->format);
proto_tree_add_none_format(bi->bssgp_tree, NULL, bi->tvb, 0, -1, "[BSSGP_IE_FORMAT_TV] format: %d", ie->format);
#endif
return;
}