Don't use wtap_phdr() for getting pkthdr struct after wtap_seek_read().
authordarkjames <darkjames@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 27 Oct 2012 08:32:41 +0000 (08:32 +0000)
committerdarkjames <darkjames@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 27 Oct 2012 08:32:41 +0000 (08:32 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@45808 f5534014-38df-0310-8fa8-9805f1628bb7

tshark.c

index 06df6a3f6c08c839607e6f8cdda96c5de7470121..c90ded68ce3413362cec42a3f04e5e5b573bb7bc 100644 (file)
--- a/tshark.c
+++ b/tshark.c
@@ -2904,7 +2904,7 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type,
              filter, so, if we're writing to a capture file, write
              this packet out. */
           if (pdh != NULL) {
-            if (!wtap_dump(pdh, wtap_phdr(cf->wth), wtap_buf_ptr(cf->wth), &err)) {
+            if (!wtap_dump(pdh, &cf->phdr, wtap_buf_ptr(cf->wth), &err)) {
               /* Error writing to a capture file */
               switch (err) {