From c562a534c854388e860d0231aab5dad4f06dfe2c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 14 May 2012 19:48:16 +0200 Subject: s3: Fix a likely cut&paste error --- source3/smbd/lanman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') 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, -- cgit