Skip to contentSkip to conversation

fix DEBUG compile in ipt_MASQUERADE

PATCH Applied Harald Welte 2 participants 2 messages Mar 29, 2004 – Mar 30, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix DEBUG compile in ipt_MASQUERADE

Hi Dave!

This is a bugfix to ipt_MASQUERADE.c to make it compile when debugging is switched on. The patch applies cleanly to 2.4.x and 2.6.x.

Please submit,

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
net/ipv4/netfilter/ipt_MASQUERADE.c +1 -1
diff -Nur linux-2.4.22-1.2115.nptl/net/ipv4/netfilter/ipt_MASQUERADE.c new/net/ipv4/netfilter/ipt_MASQUERADE.c
@@ -32,7 +32,7 @@
 	const struct ip_nat_multi_range *mr = targinfo;
 
 	if (strcmp(tablename, "nat") != 0) {
-		DEBUGP("masquerade_check: bad table `%s'.\n", table);
+		DEBUGP("masquerade_check: bad table `%s'.\n", tablename);
 		return 0;
 	}
 	if (targinfosize != IPT_ALIGN(sizeof(*mr))) {
#1 lore raw
Quoted 2 lines · On Mon, 29 Mar 2004 12:44:37 +0200 Harald Welte <[email protected]> wrote:

This is a bugfix to ipt_MASQUERADE.c to make it compile when debugging is switched on. The patch applies cleanly to 2.4.x and 2.6.x.

Applied, thanks Harald.