summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-05-24 13:36:43 +0000
committerLuke Leighton <lkcl@samba.org>1998-05-24 13:36:43 +0000
commit684edc9fcd73d9c2059d018c4b5eb599888cfd8b (patch)
tree56e99e6905c79a889d82630fc1e6d22f625f79ad /source3/rpc_server
parent0f9d24f083acb5bb17d220ac6bcac833625e1f74 (diff)
downloadsamba-684edc9fcd73d9c2059d018c4b5eb599888cfd8b.tar.gz
samba-684edc9fcd73d9c2059d018c4b5eb599888cfd8b.tar.bz2
samba-684edc9fcd73d9c2059d018c4b5eb599888cfd8b.zip
- created pdb_sethexpwd(), to be called from all pwd apis that need to
store passwords in ascii format - dealt with lots of signed/unsigned char thingies spotted by Tim Winders. (This used to be commit bd825f1ef15c4bf12aeba945f8bfdc7fd0e14d25)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_netlog.c4
-rw-r--r--source3/rpc_server/srv_reg.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_netlog.c b/source3/rpc_server/srv_netlog.c
index c81a8244d9..821945b757 100644
--- a/source3/rpc_server/srv_netlog.c
+++ b/source3/rpc_server/srv_netlog.c
@@ -344,8 +344,8 @@ static void api_net_auth_2( int uid,
cred_create(vuser->dc.sess_key, &(vuser->dc.srv_cred.challenge), srv_time, &srv_cred);
/* copy the received client credentials for use next time */
- memcpy(vuser->dc.clnt_cred.challenge.data, &(q_a.clnt_chal.data), sizeof(q_a.clnt_chal.data));
- memcpy(vuser->dc.srv_cred.challenge.data, &(q_a.clnt_chal.data), sizeof(q_a.clnt_chal.data));
+ memcpy(vuser->dc.clnt_cred.challenge.data, q_a.clnt_chal.data, sizeof(q_a.clnt_chal.data));
+ memcpy(vuser->dc.srv_cred .challenge.data, q_a.clnt_chal.data, sizeof(q_a.clnt_chal.data));
}
else
{
diff --git a/source3/rpc_server/srv_reg.c b/source3/rpc_server/srv_reg.c
index fa856f6983..3f9cdc20f4 100644
--- a/source3/rpc_server/srv_reg.c
+++ b/source3/rpc_server/srv_reg.c
@@ -38,7 +38,7 @@ static void reg_reply_close(REG_Q_CLOSE *q_r,
REG_R_CLOSE r_u;
/* set up the REG unknown_1 response */
- bzero(&(r_u.pol.data), POL_HND_SIZE);
+ bzero(r_u.pol.data, POL_HND_SIZE);
/* close the policy handle */
if (close_lsa_policy_hnd(&(q_r->pol)))