summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-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 86fa0d108d..c281ccaacc 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3181,10 +3181,10 @@ uint32 _spoolss_endpageprinter(POLICY_HND *handle)
static struct current_user *get_current_user(struct current_user *user, pipes_struct *p)
{
if (p->ntlmssp_auth_validated) {
- memcpy(user, &p->pipe_user, sizeof(user));
+ memcpy(user, &p->pipe_user, sizeof(struct current_user));
} else {
extern struct current_user current_user;
- memcpy(user, &current_user, sizeof(user));
+ memcpy(user, &current_user, sizeof(struct current_user));
}
return user;