Skip to contentSkip to conversation

netfilter: Fix format string mismatch in ip_vs_proto_name()

PATCH Applied Masanari Iida 2 participants 2 messages Mar 31, 2014 – Apr 3, 2014

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

PATCH 1/5 netfilter: Fix format string mismatch in ip_vs_proto_name()

Fix string mismatch in ip_vs_proto_name()

---
 net/netfilter/ipvs/ip_vs_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/ipvs/ip_vs_core.c +1 -1
index 4f26ee4..d9da8c4 100644
@@ -97,7 +97,7 @@ const char *ip_vs_proto_name(unsigned int proto)
 		return "ICMPv6";
 #endif
 	default:
-		sprintf(buf, "IP_%d", proto);
+		sprintf(buf, "IP_%u", proto);
 		return buf;
 	}
 }
Signature · 1 line
1.9.1.352.gd393d14
maintainer
#1 lore raw
Quoted 12 lines · Masanari Iida

Fix string mismatch in ip_vs_proto_name()

---
 net/netfilter/ipvs/ip_vs_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/ipvs/ip_vs_core.c +0 -0
index 4f26ee4..d9da8c4 100644

net/netfilter/ipvs/ip_vs_core.c const char *ip_vs_proto_name(unsigned int proto) · line 103

Quoted 8 lines
net/netfilter/ipvs/ip_vs_core.c +1 -1
@@ -97,7 +97,7 @@ const char *ip_vs_proto_name(unsigned int proto)
 		return "ICMPv6";
 #endif
 	default:
-		sprintf(buf, "IP_%d", proto);
+		sprintf(buf, "IP_%u", proto);
 		return buf;
 	}
 }

Thanks, I have queued this up.