We don't need to dissect the body if 1) we're *not* building a protocol
tree (tree == NULL) *and* 2) the PDU doesn't have content that can be
handed off to subdissectors.
(Fix which vs. that issue in a comment while we're at it.)
Change-Id: I90890975c05e72cc9ebc776a21683905828f57b5
Reviewed-on: https://code.wireshark.org/review/27876
Reviewed-by: Guy Harris <guy@alum.mit.edu>
/*
* Cycle through MMS-headers
*
- * NOTE - some PDUs may convey content which can be handed off
+ * NOTE - some PDUs may convey content that can be handed off
* to subdissectors.
*/
- if (tree || pdu_has_content(pdut)) {
+ if (tree == NULL && !pdu_has_content(pdut)) {
DebugLog(("tree == NULL and PDU has no potential content\n"));
return;
}