From Colin O'Flynn:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 27 May 2011 07:02:26 +0000 (07:02 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 27 May 2011 07:02:26 +0000 (07:02 +0000)
Avoid processing tvb when fragment dissection didn't create one.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37426 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-6lowpan.c

index 031dcfb..76a9757 100644 (file)
@@ -2035,6 +2035,11 @@ dissect_6lowpan_frag_first(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         return NULL;
     }
 
+    /* Check call to dissect_6lowpan_xxx was successful */
+    if (frag_tvb == NULL) {
+        return NULL;
+    }
+
     /* Add this datagram to the fragment table. */
     frag_size = tvb_length(frag_tvb);
     tvb_set_reported_length(frag_tvb, frag_size);