Skip to contentSkip to conversation

iptables-restore.c bugfix

PATCH In review Michael Rash 2 participants 2 messages Jan 5, 2004 – Jan 6, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iptables-restore.c bugfix

The attached (trivial) patch fixes bug 171 in the netfilter bugzilla.

--Mike

Michael Rash
http://www.cipherdyne.org
Key fingerprint = 53EA 13EA 472E 3771 894F AC69 95D8 5D6B A742 839F

Index: iptables-restore.c
===================================================================
RCS file: /cvspublic/netfilter/userspace/iptables-restore.c,v retrieving revision 1.26

iptables-restore.c +1 -1
diff -u -r1.26 iptables-restore.c
@@ -318,7 +318,7 @@
 			
 			for (curchar = parsestart; *curchar; curchar++) {
 				if (*curchar == '"') {
-					if (quote_open) {
+					if (quote_open && *(curchar-1) != '\\') {
 						quote_open = 0;
 						*curchar = ' ';
 					} else {
#1 lore raw
Quoted 1 line · Michael Rash

The attached (trivial) patch fixes bug 171 in the netfilter bugzilla.

thanks, I am actually reading the bugzilla buglog and thus use the patches from there.

Quoted 2 lines

--Mike
Michael Rash

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie