Skip to contentSkip to conversation

fix missing parenthesis in unused macro in ip_nat_standalone

PATCH-2.4 Willy Tarreau 1 participant 1 message Feb 25, 2007

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

Hi all,

Just FYI, I've queued the following patch for 2.4.35-pre2. Mariusz proposed to remove the unused macro (which is not in 2.6 anymore BTW), but I don't like removing anything in code freeze. However, fixing invalid code still seems important to me.

Regards,
Willy

From: Willy Tarreau <[email protected]>
Date: Sun, 25 Feb 2007 08:55:44 +0100
Subject: [PATCH] fix missing parenthesis in unused macro in ip_nat_standalone

The bug found by Mariusz Kozlowski affects an unused macro. However, I prefer to fix the macro than removing it because external patches might be relying on it.

---
 net/ipv4/netfilter/ip_nat_standalone.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/ipv4/netfilter/ip_nat_standalone.c +1 -1
index 2628978..ff8935b 100644
@@ -47,7 +47,7 @@ #define HOOKNAME(hooknum) ((hooknum) == 
 			   : ((hooknum) == NF_IP_PRE_ROUTING ? "PRE_ROUTING" \
 			      : ((hooknum) == NF_IP_LOCAL_OUT ? "LOCAL_OUT"  \
 			         : ((hooknum) == NF_IP_LOCAL_IN ? "LOCAL_IN"  \
-				    : "*ERROR*")))
+				    : "*ERROR*"))))
 
 static inline int call_expect(struct ip_conntrack *master,
 			      struct sk_buff **pskb,
Signature · 1 line
1.4.2.4