Display the CONTROL response data only if there *is* CONTROL response data.
svn path=/trunk/; revision=27034
This commit is contained in:
parent
c04cd4c91c
commit
c0a8829bfd
1 changed files with 8 additions and 4 deletions
|
@ -1610,14 +1610,18 @@ dissect_linux_usb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent)
|
||||||
if(dissector){
|
if(dissector){
|
||||||
offset = dissector(pinfo, tree, tvb, offset, is_request, usb_conv_info->usb_trans_info, usb_conv_info);
|
offset = dissector(pinfo, tree, tvb, offset, is_request, usb_conv_info->usb_trans_info, usb_conv_info);
|
||||||
} else {
|
} else {
|
||||||
proto_tree_add_text(tree, tvb, offset, -1, "CONTROL response data");
|
if (tvb_reported_length_remaining(tvb, offset) != 0) {
|
||||||
offset += tvb_length_remaining(tvb, offset);
|
proto_tree_add_text(tree, tvb, offset, -1, "CONTROL response data");
|
||||||
|
offset += tvb_length_remaining(tvb, offset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* no matching request available */
|
/* no matching request available */
|
||||||
proto_tree_add_text(tree, tvb, offset, -1, "CONTROL response data");
|
if (tvb_reported_length_remaining(tvb, offset) != 0) {
|
||||||
offset += tvb_length_remaining(tvb, offset);
|
proto_tree_add_text(tree, tvb, offset, -1, "CONTROL response data");
|
||||||
|
offset += tvb_length_remaining(tvb, offset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue