summaryrefslogtreecommitdiff
path: root/source3/rpc_server
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/rpc_server
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/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index b0200de20a..cafe9fc9af 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -2573,13 +2573,13 @@ static bool spoolss_connect_to_client(struct rpc_pipe_client **pp_pipe,
struct cli_state *the_cli;
struct sockaddr_storage rm_addr;
- if ( is_zero_addr(client_ss) ) {
+ if ( is_zero_addr((struct sockaddr *)client_ss) ) {
if ( !resolve_name( remote_machine, &rm_addr, 0x20) ) {
DEBUG(2,("spoolss_connect_to_client: Can't resolve address for %s\n", remote_machine));
return False;
}
- if (ismyaddr(&rm_addr)) {
+ if (ismyaddr((struct sockaddr *)&rm_addr)) {
DEBUG(0,("spoolss_connect_to_client: Machine %s is one of our addresses. Cannot add to ourselves.\n", remote_machine));
return False;
}