Hello All!

First of all - sorry me for my terrible English.
The second - I am only a student and not so professional as you are,  that's why may 
be mistaking!
The third - I downloaded the latest CVS userspace module and compiled it.
Trying to execute it with this:

[root@udacoderz netfilter-devel]# userspace/iptables -p !
Segmentation fault (core dumped)

-- 
Best regards,
Dionis Papavramidis                            mailto:[EMAIL PROTECTED]




diff -Naur userspace/iptables.c userspace.old/iptables.c
--- userspace/iptables.c	Mon Feb 18 18:15:31 2002
+++ userspace.old/iptables.c	Fri Mar  1 00:10:11 2002
@@ -1839,8 +1839,13 @@
 			set_option(&options, OPT_PROTOCOL, &fw.ip.invflags,
 				   invert);
 
+			protocol = argv[optind-1];
+			if (protocol==NULL) 
+				exit_error(PARAMETER_PROBLEM, 
+						"unknown protocol `%s' specified", argv[optind-1]);
+
 			/* Canonicalize into lower case */
-			for (protocol = argv[optind-1]; *protocol; protocol++)
+			for (; *protocol; protocol++)
 				*protocol = tolower(*protocol);
 
 			protocol = argv[optind-1];

Reply via email to