Bloody copy-n-edit. Complain when COMMIT is missing...
diff --git a/ip6tables-restore.c b/ip6tables-restore.c
index 287e864..0414a6e 100644
--- a/ip6tables-restore.c
+++ b/ip6tables-restore.c
@@ -7,7 +7,7 @@
  * 	Rusty Russell <rusty@linuxcare.com.au>
  * This code is distributed under the terms of GNU GPL v2
  *
- * $Id: ip6tables-restore.c,v 1.16 2004/01/31 19:33:47 gandalf Exp $
+ * $Id: ip6tables-restore.c,v 1.17 2004/01/31 19:41:49 gandalf Exp $
  */
 
 #include <getopt.h>
@@ -389,6 +389,11 @@
 			exit(1);
 		}
 	}
+	if (in_table) {
+		fprintf(stderr, "%s: COMMIT expected at line %u\n",
+				program_name, line + 1);
+		exit(1);
+	}
 
 	return 0;
 }