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:08:39 +0000 (14:08 +0100)
The length of the memcpy was calculated wrong, r->out.return_authenticator is
a pointer

source3/rpc_server/srv_netlog_nt.c

index 0a2d77e266cdda263b70c771195d33b42450f55a..a38c7176650a6dcda71ee4611cf51e55b3e45c53 100644 (file)
@@ -769,7 +769,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;