summaryrefslogtreecommitdiffstats
path: root/net/netfilter/ipvs/ip_vs_sync.c
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2010-11-09 09:33:28 +0900
committerSimon Horman <horms@verge.net.au>2010-11-16 08:13:08 +0900
commit8aadf93c9c1ff1a53aafd18d038be0d709b5ebc0 (patch)
tree95fce415f48f4df24656ed47a97def2da858a02a /net/netfilter/ipvs/ip_vs_sync.c
parent7ae246a15a5c9d26cfb572d36794325db0400b18 (diff)
downloadop-kernel-dev-8aadf93c9c1ff1a53aafd18d038be0d709b5ebc0.zip
op-kernel-dev-8aadf93c9c1ff1a53aafd18d038be0d709b5ebc0.tar.gz
IPVS: buffer argument to ip_vs_process_message() should not be const
It is assigned to a non-const variable and its contents are modified. Acked-by: Hans Schillstrom <hans.schillstrom@ericsson.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_sync.c')
-rw-r--r--net/netfilter/ipvs/ip_vs_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c
index 72b3d88..3897d6b 100644
--- a/net/netfilter/ipvs/ip_vs_sync.c
+++ b/net/netfilter/ipvs/ip_vs_sync.c
@@ -303,7 +303,7 @@ ip_vs_conn_fill_param_sync(int af, int protocol,
* Process received multicast message and create the corresponding
* ip_vs_conn entries.
*/
-static void ip_vs_process_message(const char *buffer, const size_t buflen)
+static void ip_vs_process_message(char *buffer, const size_t buflen)
{
struct ip_vs_sync_mesg *m = (struct ip_vs_sync_mesg *)buffer;
struct ip_vs_sync_conn *s;
OpenPOWER on IntegriCloud