summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/access.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c
index 0b09e83ce3..a7d2262d6b 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -66,7 +66,9 @@ static bool masked_match(const char *tok, const char *slash, const char *s)
}
}
- return same_net((struct sockaddr *)&ss_host, (struct sockaddr *)&ss_tok, (struct sockaddr *)&ss_mask);
+ return same_net((struct sockaddr *)(void *)&ss_host,
+ (struct sockaddr *)(void *)&ss_tok,
+ (struct sockaddr *)(void *)&ss_mask);
}
/* string_match - match string s against token tok */