summaryrefslogtreecommitdiff
path: root/source3/lib/access.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-23 19:53:15 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-23 19:53:15 +0200
commitd6a5476ee7af464a381bbeeec576ee58f3650a43 (patch)
treec19d8dab5fe71ad76f3d0f7698afc1300bf3443c /source3/lib/access.c
parent55fd6b125c3e5ac135d124c291f5ae6102fcbb2f (diff)
downloadsamba-d6a5476ee7af464a381bbeeec576ee58f3650a43.tar.gz
samba-d6a5476ee7af464a381bbeeec576ee58f3650a43.tar.bz2
samba-d6a5476ee7af464a381bbeeec576ee58f3650a43.zip
Use sockaddr_storage only where we rely on the size, use sockaddr
otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
Diffstat (limited to 'source3/lib/access.c')
-rw-r--r--source3/lib/access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c
index 966d8ce87c..0b09e83ce3 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -66,7 +66,7 @@ static bool masked_match(const char *tok, const char *slash, const char *s)
}
}
- return same_net(&ss_host, &ss_tok, &ss_mask);
+ return same_net((struct sockaddr *)&ss_host, (struct sockaddr *)&ss_tok, (struct sockaddr *)&ss_mask);
}
/* string_match - match string s against token tok */