Blame SOURCES/wireshark-0018-CVE-19624.patch

4a42e1
diff --git a/epan/dissectors/packet-pvfs2.c b/epan/dissectors/packet-pvfs2.c
4a42e1
index e2b61bef7a..1c1012ceca 100644
4a42e1
--- a/epan/dissectors/packet-pvfs2.c
4a42e1
+++ b/epan/dissectors/packet-pvfs2.c
4a42e1
@@ -2314,6 +2314,12 @@ dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree,
4a42e1
 	/* Get pointer to server config data */
4a42e1
 	ptr = tvb_get_ptr(tvb, offset, total_config_bytes);
4a42e1
 
4a42e1
+	if (!ptr)
4a42e1
+	{
4a42e1
+		/* Not enough data. Bail out. */
4a42e1
+		return offset;
4a42e1
+	}
4a42e1
+
4a42e1
 	/* Check if all data is available */
4a42e1
 	length_remaining = tvb_captured_length_remaining(tvb, offset);
4a42e1