Have the frame_tvbuff.c routines not use the global cfile.
[metze/wireshark/wip.git] / ui / gtk / packet_list_store.c
index 5af1dd4df15f105c3ad8c9578a393656381d1856..57f2ba1bdc9133766294243836f0a1ca0250a563 100644 (file)
@@ -1176,7 +1176,9 @@ packet_list_dissect_and_cache_record(PacketList *packet_list, PacketListRecord *
         * XXX - need to catch an OutOfMemoryError exception and
         * attempt to recover from it.
         */
-       epan_dissect_run(&edt, cfile.cd_t, &phdr, frame_tvbuff_new_buffer(fdata, &buf), fdata, cinfo);
+       epan_dissect_run(&edt, cfile.cd_t, &phdr,
+           frame_tvbuff_new_buffer(&cfile.provider, fdata, &buf),
+           fdata, cinfo);
 
        if (dissect_columns) {
                /* "Stringify" non frame_data vals */