diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2019-06-27 19:00:41 +0200 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2019-06-27 19:00:41 +0200 |
commit | 5caf76b1655c22e28d1167b786f741ed47f301b1 (patch) | |
tree | a7b12c78132b1ae310a07b0a3eb7a58809df0662 /modules/pam_unix/support.c | |
parent | 5154aabe8aac27d569059cad3332cd12c7442a8a (diff) | |
download | pam-5caf76b1655c22e28d1167b786f741ed47f301b1.tar.gz pam-5caf76b1655c22e28d1167b786f741ed47f301b1.tar.bz2 pam-5caf76b1655c22e28d1167b786f741ed47f301b1.zip |
pam_unix: Correct MAXPASS define name in the previous two commits.
* modules/pam_unix/pam_unix_passwd.c: Change MAX_PASS to MAXPASS.
* modules/pam_unix/support.c: Likewise.
Diffstat (limited to 'modules/pam_unix/support.c')
-rw-r--r-- | modules/pam_unix/support.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c index e5415f59..81c7651c 100644 --- a/modules/pam_unix/support.c +++ b/modules/pam_unix/support.c @@ -646,7 +646,7 @@ int _unix_verify_password(pam_handle_t * pamh, const char *name struct passwd *pwd = NULL; char *salt = NULL; char *data_name; - char pw[MAX_PASS + 1]; + char pw[MAXPASS + 1]; int retval; @@ -673,7 +673,7 @@ int _unix_verify_password(pam_handle_t * pamh, const char *name strcpy(data_name + sizeof(FAIL_PREFIX) - 1, name); } - if (p != NULL && strlen(p) > MAX_PASS) { + if (p != NULL && strlen(p) > MAXPASS) { memset(pw, 0, sizeof(pw)); p = strncpy(pw, p, sizeof(pw) - 1); } |