summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-17 00:32:58 +0100
committerGünther Deschner <gd@samba.org>2009-02-17 00:32:58 +0100
commitf34f4074f8fea8d5c785aa6bb6fd7f325ac79feb (patch)
treeaf943d531770092b71b56c2e773764c4e1a3f91d /source4/rpc_server
parent2fde3d2bc4c7fcfb881f29f3de1bf6fe52f526f8 (diff)
downloadsamba-f34f4074f8fea8d5c785aa6bb6fd7f325ac79feb.tar.gz
samba-f34f4074f8fea8d5c785aa6bb6fd7f325ac79feb.tar.bz2
samba-f34f4074f8fea8d5c785aa6bb6fd7f325ac79feb.zip
s4-spoolss: fix dcesrv_spoolss_RemoteFindFirstPrinterChangeNotifyEx server.
Guenther
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/spoolss/dcesrv_spoolss.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/rpc_server/spoolss/dcesrv_spoolss.c b/source4/rpc_server/spoolss/dcesrv_spoolss.c
index c0330c0ae8..dc611e331a 100644
--- a/source4/rpc_server/spoolss/dcesrv_spoolss.c
+++ b/source4/rpc_server/spoolss/dcesrv_spoolss.c
@@ -1148,7 +1148,7 @@ static WERROR dcesrv_spoolss_RemoteFindFirstPrinterChangeNotifyEx(struct dcesrv_
struct cli_credentials *creds;
struct policy_handle notify_handle;
- DEBUG(2, ("Received RFFPCNex from %s\n", r->in.str));
+ DEBUG(2, ("Received RFFPCNex from %s\n", r->in.local_machine));
/*
* TODO: for now just open a connection to the client and drop it again
@@ -1160,9 +1160,9 @@ static WERROR dcesrv_spoolss_RemoteFindFirstPrinterChangeNotifyEx(struct dcesrv_
binding = talloc_zero(mem_ctx, struct dcerpc_binding);
binding->transport = NCACN_NP;
- if (strncmp(r->in.str, "\\\\", 2))
+ if (strncmp(r->in.local_machine, "\\\\", 2))
return WERR_INVALID_COMPUTERNAME;
- binding->host = r->in.str+2;
+ binding->host = r->in.local_machine+2;
creds = cli_credentials_init_anon(mem_ctx); /* FIXME: Use machine credentials instead ? */
@@ -1171,7 +1171,7 @@ static WERROR dcesrv_spoolss_RemoteFindFirstPrinterChangeNotifyEx(struct dcesrv_
dce_call->conn->dce_ctx->lp_ctx);
if (NT_STATUS_IS_ERR(status)) {
- DEBUG(0, ("unable to call back to %s\n", r->in.str));
+ DEBUG(0, ("unable to call back to %s\n", r->in.local_machine));
return WERR_SERVER_UNAVAILABLE;
}
@@ -1186,7 +1186,8 @@ static WERROR dcesrv_spoolss_RemoteFindFirstPrinterChangeNotifyEx(struct dcesrv_
status = dcerpc_spoolss_ReplyOpenPrinter(p, mem_ctx, &rop);
if (NT_STATUS_IS_ERR(status)) {
- DEBUG(0, ("unable to open remote printer %s\n", r->in.str));
+ DEBUG(0, ("unable to open remote printer %s\n",
+ r->in.local_machine));
return WERR_SERVER_UNAVAILABLE;
}