summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-14 19:48:16 +0200
committerVolker Lendecke <vl@samba.org>2012-05-15 16:18:50 +0200
commitc562a534c854388e860d0231aab5dad4f06dfe2c (patch)
tree07213a681bf7f8696470a2baa10ae46df57478b1 /source3
parent5e6357b42149ad4504fdd7b05acd264d10fcbe67 (diff)
downloadsamba-c562a534c854388e860d0231aab5dad4f06dfe2c.tar.gz
samba-c562a534c854388e860d0231aab5dad4f06dfe2c.tar.bz2
samba-c562a534c854388e860d0231aab5dad4f06dfe2c.zip
s3: Fix a likely cut&paste error
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/lanman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index 31775bf5f4..ac2faa9f5d 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -3145,7 +3145,7 @@ static bool api_SetUserPassword(struct smbd_server_connection *sconn,
ZERO_STRUCT(old_lm_hash);
ZERO_STRUCT(new_lm_hash);
memcpy(old_lm_hash.hash, pass1, MIN(strlen(pass1), 16));
- memcpy(new_lm_hash.hash, pass1, MIN(strlen(pass2), 16));
+ memcpy(new_lm_hash.hash, pass2, MIN(strlen(pass2), 16));
}
status = dcerpc_samr_ChangePasswordUser(b, mem_ctx,