From 01d97c7ee186d2f9ad78ee20d0d94adb914e5c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=BCxen?= Date: Tue, 25 Dec 2012 22:25:40 +0000 Subject: Fix writing of PCAP-NG files when flags are provided. svn path=/trunk/; revision=46742 --- pcapio.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'pcapio.c') diff --git a/pcapio.c b/pcapio.c index ec2c5e7953..d65ad84586 100644 --- a/pcapio.c +++ b/pcapio.c @@ -603,9 +603,6 @@ libpcap_write_enhanced_packet_block(FILE *fp, option.value_length = sizeof(guint32); WRITE_DATA(fp, &option, sizeof(struct option), *bytes_written, err); WRITE_DATA(fp, &flags, sizeof(guint32), *bytes_written, err); - option.type = OPT_ENDOFOPT; - option.value_length = 0; - WRITE_DATA(fp, &option, sizeof(struct option), *bytes_written, err); } if (have_options) { option.type = OPT_ENDOFOPT; -- cgit v1.2.3