summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan T. DeKok <aland@freeradius.org>2015-05-21 15:40:11 -0400
committerAlan T. DeKok <aland@freeradius.org>2015-05-21 15:40:11 -0400
commit01173ec2426627dbb1e0d96c06c3ffa0b14d36d0 (patch)
tree0ae33dd3cd20d379408e10d0ef16e9a97dbabf7b
parent160b2bcc2abc9ba96a11ad22b3b9e8fa9e4460e5 (diff)
downloadlibpam-radius-auth-01173ec2426627dbb1e0d96c06c3ffa0b14d36d0.tar.gz
libpam-radius-auth-01173ec2426627dbb1e0d96c06c3ffa0b14d36d0.zip
Use "length", which has been limited in size
-rw-r--r--src/pam_radius_auth.c2
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);