Fix bug #7112, where the interface ids were not saved

svn path=/trunk/; revision=42110
This commit is contained in:
ruengeler 2012-04-17 13:13:30 +00:00
parent c37ae40436
commit 61e2ac924d
1 changed files with 2 additions and 1 deletions

3
file.c
View File

@ -3705,7 +3705,7 @@ typedef struct {
* up a message box for the failure.
*/
static gboolean
save_packet(capture_file *cf _U_, frame_data *fdata,
save_packet(capture_file *cf, frame_data *fdata,
union wtap_pseudo_header *pseudo_header, const guint8 *pd,
void *argsp)
{
@ -3714,6 +3714,7 @@ save_packet(capture_file *cf _U_, frame_data *fdata,
int err;
/* init the wtap header for saving */
hdr.presence_flags = wtap_phdr(cf->wth)->presence_flags;
hdr.ts.secs = fdata->abs_ts.secs;
hdr.ts.nsecs = fdata->abs_ts.nsecs;
hdr.caplen = fdata->cap_len;