diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-10-27 08:32:41 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-10-27 08:32:41 +0000 |
commit | 418f56d09395362e2c813b785459d07112caa46a (patch) | |
tree | daad1326e9691467db4e55b7ce5ce15ff6597c4a /tshark.c | |
parent | 0ed00c491dce58286db37ce35b1bca1e7353db1f (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |