Commit 1404c3ab authored by Masanari Iida's avatar Masanari Iida Committed by Pablo Neira Ayuso

netfilter: Fix format string mismatch in ip_vs_proto_name()

Fix string mismatch in ip_vs_proto_name()
Signed-off-by: default avatarMasanari Iida <standby24x7@gmail.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent fd0d192b
...@@ -97,7 +97,7 @@ const char *ip_vs_proto_name(unsigned int proto) ...@@ -97,7 +97,7 @@ const char *ip_vs_proto_name(unsigned int proto)
return "ICMPv6"; return "ICMPv6";
#endif #endif
default: default:
sprintf(buf, "IP_%d", proto); sprintf(buf, "IP_%u", proto);
return buf; return buf;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment