summaryrefslogtreecommitdiff
path: root/xtests
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2007-02-01 21:54:58 +0000
committerTomas Mraz <tm@t8m.info>2007-02-01 21:54:58 +0000
commite8f5cd4ad89acb19a5be34ea24ab56857528a59c (patch)
treeaac85b6b8ec478b00cd31407492e60f459806ccd /xtests
parentb12b648d8357e5baa5c607ca6703380b1e77b013 (diff)
Relevant BUGIDs:
Purpose of commit: bugfix Commit summary: --------------- 2007-02-01 Tomas Mraz <t8m@centrum.cz> * xtests/tst-pam_unix3.c: Fix typos in comments. * modules/pam_unix/support.c (_unix_verify_password): Explicitly disallow '!' in the beginning of password hash. Treat only 13 bytes password hash specifically. (Suggested by Solar Designer.) Fix a warning and test for allocation failure. * modules/pam_unix/unix_chkpwd.c (_unix_verify_password): Likewise.
Diffstat (limited to 'xtests')
-rw-r--r--xtests/tst-pam_unix3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtests/tst-pam_unix3.c b/xtests/tst-pam_unix3.c
index cb3c7c59..bd5ffca4 100644
--- a/xtests/tst-pam_unix3.c
+++ b/xtests/tst-pam_unix3.c
@@ -70,7 +70,7 @@ fake_conv (int num_msg, const struct pam_message **msgm UNUSED,
for (count = 0; count < num_msg; ++count)
{
reply[count].resp_retcode = 0;
- /* first call get a password, second one a too long one */
+ /* first call get a password, second one a too short one */
if (in_test == 1)
reply[count].resp = strdup ("pamunix01");
else if (in_test == 2)
@@ -122,7 +122,7 @@ main(int argc, char *argv[])
return 1;
}
- /* Try two, second input is too long */
+ /* Try two, second input is too short */
in_test = 2;
retval = pam_authenticate (pamh, 0);
if (retval != PAM_AUTH_ERR)