List Info

Thread: Properly terminate option struct




Properly terminate option struct
country flaguser name
Germany
2007-07-24 05:19:14

The option struct needs to be terminated, otherwise
ip{,6}tables
will access illegal memory in merge_options().

Signed-off-by: Jan Engelhardt <jengelhgmx.de>

---
 extensions/libip6t_NFLOG.c |    1 +
 extensions/libipt_NFLOG.c  |    1 +
 2 files changed, 2 insertions(+)

Index: iptables/extensions/libip6t_NFLOG.c
============================================================
=======
--- iptables.orig/extensions/libip6t_NFLOG.c
+++ iptables/extensions/libip6t_NFLOG.c
 -19,6
+19,7  static struct option opts[] = {
 	{ "nflog-prefix",    1, 0, NFLOG_PREFIX },
 	{ "nflog-range",     1, 0, NFLOG_RANGE },
 	{ "nflog-threshold", 1, 0, NFLOG_THRESHOLD },
+	,
 };
 
 static void help(void)
Index: iptables/extensions/libipt_NFLOG.c
============================================================
=======
--- iptables.orig/extensions/libipt_NFLOG.c
+++ iptables/extensions/libipt_NFLOG.c
 -19,6
+19,7  static struct option opts[] = {
 	{ "nflog-prefix",    1, 0, NFLOG_PREFIX },
 	{ "nflog-range",     1, 0, NFLOG_RANGE },
 	{ "nflog-threshold", 1, 0, NFLOG_THRESHOLD },
+	,
 };
 
 static void help(void)


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )