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,17 +1610,21 @@ dissect_linux_usb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent)
|
|||
if(dissector){
|
||||
offset = dissector(pinfo, tree, tvb, offset, is_request, usb_conv_info->usb_trans_info, usb_conv_info);
|
||||
} else {
|
||||
if (tvb_reported_length_remaining(tvb, offset) != 0) {
|
||||
proto_tree_add_text(tree, tvb, offset, -1, "CONTROL response data");
|
||||
offset += tvb_length_remaining(tvb, offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* no matching request available */
|
||||
if (tvb_reported_length_remaining(tvb, offset) != 0) {
|
||||
proto_tree_add_text(tree, tvb, offset, -1, "CONTROL response data");
|
||||
offset += tvb_length_remaining(tvb, offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
/* dont know */
|
||||
|
|
Loading…
Reference in a new issue