aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-10-27 08:32:41 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-10-27 08:32:41 +0000
commit418f56d09395362e2c813b785459d07112caa46a (patch)
treedaad1326e9691467db4e55b7ce5ce15ff6597c4a /tshark.c
parent0ed00c491dce58286db37ce35b1bca1e7353db1f (diff)
Don't use wtap_phdr() for getting pkthdr struct after wtap_seek_read().
svn path=/trunk/; revision=45808
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index 06df6a3f6c..c90ded68ce 100644
--- 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) {