diff options
-rw-r--r-- | src/pam_radius_auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pam_radius_auth.c b/src/pam_radius_auth.c index 7c7c9d9..396d1cf 100644 --- a/src/pam_radius_auth.c +++ b/src/pam_radius_auth.c @@ -536,7 +536,7 @@ static void add_password(AUTH_HDR *request, unsigned char type, CONST char *pass } /* 16*N maps to itself */ memset(hashed, 0, length); - memcpy(hashed, password, strlen(password)); + memcpy(hashed, password, length); attr = find_attribute(request, PW_PASSWORD); |