summaryrefslogtreecommitdiffstats
path: root/iptables-restore.c
diff options
context:
space:
mode:
authorlaforge <laforge>2001-05-26 04:41:56 +0000
committerlaforge <laforge>2001-05-26 04:41:56 +0000
commit545f945540df7b849d7eed89d5ac86f3331bef6a (patch)
tree4e25cafd4e8a6252ba5091a5bbce7956f89933e2 /iptables-restore.c
parent0c0635d9ce72ea3ba9b793b0cd662ade6cbe456e (diff)
iptables-save had problems with multiple spaces between options (A. van Schie)
Diffstat (limited to 'iptables-restore.c')
-rw-r--r--iptables-restore.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/iptables-restore.c b/iptables-restore.c
index 438903e..e5a28f3 100644
--- a/iptables-restore.c
+++ b/iptables-restore.c
@@ -4,7 +4,7 @@
*
* This coude is distributed under the terms of GNU GPL
*
- * $Id: iptables-restore.c,v 1.10 2001/03/15 15:12:02 laforge Exp $
+ * $Id: iptables-restore.c,v 1.11 2001/05/03 20:50:03 laforge Exp $
*/
#include <getopt.h>
@@ -308,8 +308,11 @@ int main(int argc, char *argv[])
if (quote_open)
continue;
- if (!param_len)
- break;
+ if (!param_len) {
+ /* two spaces? */
+ param_start++;
+ continue;
+ }
/* end of one parameter */
strncpy(param_buffer, param_start,