Skip to contentSkip to conversation

IPVS: buffer argument to ip_vs_process_message() should not be const

PATCH In review Hans Schillstrom 1 participant 1 message Nov 12, 2010

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

PATCH 7/9 IPVS: buffer argument to ip_vs_process_message() should not be const

From: Simon Horman <[email protected]>

It is assigned to a non-const variable and its contents are modified.

---
 net/netfilter/ipvs/ip_vs_sync.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/ipvs/ip_vs_sync.c +1 -1
index f21506c..be05394 100644
@@ -433,7 +433,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_v0 *s;
Signature · 1 line
1.7.2.3