Don't use wtap_phdr() for getting pkthdr struct after wtap_seek_read().
svn path=/trunk/; revision=45808
This commit is contained in:
parent
0ed00c491d
commit
418f56d093
2
tshark.c
2
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
|
filter, so, if we're writing to a capture file, write
|
||||||
this packet out. */
|
this packet out. */
|
||||||
if (pdh != NULL) {
|
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 */
|
/* Error writing to a capture file */
|
||||||
switch (err) {
|
switch (err) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue