packet-iwarp-mpa: give more information if the ULPDU length doesn't match
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Sep 2012 18:21:04 +0000 (20:21 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 29 Jan 2014 08:18:23 +0000 (09:18 +0100)
Try to dissect even it the size is not as expected.
Windows doesn't use alignment for smb-direct.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
epan/dissectors/packet-iwarp-mpa.c

index af89856bb246542c4bd8501a982ed8acbd5b9256..6a283793ce6e5c13b9d049808e808a26be824864 100644 (file)
@@ -722,8 +722,8 @@ dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
                if (!exp_ulpdu_length || exp_ulpdu_length != ulpdu_length) {
                        proto_tree_add_expert_format(tree, pinfo, &ei_mpa_bad_length, tvb, offset,
                                MPA_ULPDU_LENGTH_LEN,
-                               "[ULPDU length field does not contain the expected length]");
-                       return 0;
+                               "[ULPDU length [%u] field does not contain the expected length[%u]]",
+                               exp_ulpdu_length, ulpdu_length);
                }
 
                mpa_item = proto_tree_add_item(tree, proto_iwarp_mpa, tvb, 0,