diff options
Diffstat (limited to 'src')
-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 694e7b4..90d074a 100644 --- a/src/pam_radius_auth.c +++ b/src/pam_radius_auth.c @@ -535,8 +535,8 @@ static void add_password(AUTH_HDR *request, unsigned char type, CONST char *pass length &= ~(AUTH_PASS_LEN - 1); /* chop it off */ } /* 16*N maps to itself */ - memset(hashed, 0, length); memcpy(hashed, password, length); + memset(hashed + length, 0, sizeof(hashed) - length); attr = find_attribute(request, PW_PASSWORD); |