Fix order of arguments given to memchr().
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
3128a7a416
commit
d5e4619738
@@ -148,7 +148,7 @@ external_passwd_quality (krb5_context context,
|
||||
char reply[1024];
|
||||
FILE *in = NULL, *out = NULL, *error = NULL;
|
||||
|
||||
if (memchr(pwd->data, pwd->length, '\n') != NULL) {
|
||||
if (memchr(pwd->data, '\n', pwd->length) != NULL) {
|
||||
snprintf(message, length, "password contains newline, "
|
||||
"not valid for external test");
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user