From f34f4074f8fea8d5c785aa6bb6fd7f325ac79feb Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 17 Feb 2009 00:32:58 +0100 Subject: s4-spoolss: fix dcesrv_spoolss_RemoteFindFirstPrinterChangeNotifyEx server. Guenther --- source4/rpc_server/spoolss/dcesrv_spoolss.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source4/rpc_server/spoolss/dcesrv_spoolss.c') 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; } -- cgit