Don't use wtap_phdr() for getting pkthdr struct after wtap_seek_read().

svn path=/trunk/; revision=45808
This commit is contained in:
Jakub Zawadzki 2012-10-27 08:32:41 +00:00
parent 0ed00c491d
commit 418f56d093
1 changed files with 1 additions and 1 deletions

View File

@ -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) {