Fix writing enhanced packet blocks when flags are
provided: Don't write the end od options parameter twice. svn path=/trunk/; revision=52682
This commit is contained in:
parent
7ab98fb047
commit
54413b17b9
4
pcapio.c
4
pcapio.c
|
@ -559,10 +559,6 @@ pcapng_write_enhanced_packet_block(FILE* pfile,
|
|||
return FALSE;
|
||||
if (!write_to_file(pfile, (const guint8*)&flags, sizeof(guint32), bytes_written, err))
|
||||
return FALSE;
|
||||
option.type = OPT_ENDOFOPT;
|
||||
option.value_length = 0;
|
||||
if (!write_to_file(pfile, (const guint8*)&option, sizeof(struct option), bytes_written, err))
|
||||
return FALSE;
|
||||
}
|
||||
if (options_length != 0) {
|
||||
/* write end of options */
|
||||
|
|
Loading…
Reference in New Issue