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:
Michael Tüxen 2013-10-18 22:39:31 +00:00
parent 7ab98fb047
commit 54413b17b9
1 changed files with 0 additions and 4 deletions

View File

@ -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 */