Fix bug 5920
authorYasuma Takeda <yasuma@osstech.co.jp>
Mon, 16 Feb 2009 13:07:37 +0000 (14:07 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 16 Feb 2009 13:10:56 +0000 (14:10 +0100)
The length of the memcpy was calculated wrong, r->out.return_authenticator is
a pointer
(cherry picked from commit cb9dd0f58d06a78b7724c3e0ec8f81512edc2d29)

source/rpc_server/srv_netlog_nt.c

index 2efef7f82004f20505d49326a30f7c8ed46bbb5f..2826c426777f71f058be4a4a4b9c78abdcd1bf94 100644 (file)
@@ -697,7 +697,7 @@ NTSTATUS _netr_ServerPasswordSet(pipes_struct *p,
        /* set up the LSA Server Password Set response */
 
        memcpy(r->out.return_authenticator, &cred_out,
-              sizeof(r->out.return_authenticator));
+              sizeof(*(r->out.return_authenticator)));
 
        TALLOC_FREE(sampass);
        return status;