diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2013-10-18 22:39:31 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2013-10-18 22:39:31 +0000 |
commit | 54413b17b94b0e9b0b08a93cb5a8d068b77f5371 (patch) | |
tree | 2ef625276caa5df9e281a1c3661f17ee78c2ae0c | |
parent | 7ab98fb0473fd52b3024b7d7ef9d798b21da56b1 (diff) |
Fix writing enhanced packet blocks when flags are
provided: Don't write the end od options parameter
twice.
svn path=/trunk/; revision=52682
-rw-r--r-- | pcapio.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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 */ |