Skip to content

Commit 01173ec

Browse files
committed
Use "length", which has been limited in size
1 parent 160b2bc commit 01173ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/pam_radius_auth.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ static void add_password(AUTH_HDR *request, unsigned char type, CONST char *pass
536536
} /* 16*N maps to itself */
537537

538538
memset(hashed, 0, length);
539-
memcpy(hashed, password, strlen(password));
539+
memcpy(hashed, password, length);
540540

541541
attr = find_attribute(request, PW_PASSWORD);
542542

0 commit comments

Comments
 (0)