aboutsummaryrefslogtreecommitdiffstats
path: root/pcapio.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2013-10-18 22:39:31 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2013-10-18 22:39:31 +0000
commit54413b17b94b0e9b0b08a93cb5a8d068b77f5371 (patch)
tree2ef625276caa5df9e281a1c3661f17ee78c2ae0c /pcapio.c
parent7ab98fb0473fd52b3024b7d7ef9d798b21da56b1 (diff)
Fix writing enhanced packet blocks when flags are
provided: Don't write the end od options parameter twice. svn path=/trunk/; revision=52682
Diffstat (limited to 'pcapio.c')
-rw-r--r--pcapio.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/pcapio.c b/pcapio.c
index 8fc7566298..70bbf98ebf 100644
--- a/pcapio.c
+++ b/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 */