mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
According to opie code and even direct mention in opie(4) challenge buffer
size must be OPIE_CHALLENGE_MAX + 1, not OPIE_CHALLENGE_MAX Reviewed by: des MFC after: 1 week
This commit is contained in:
parent
97a0ca5b3e
commit
412d134acc
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags __unused,
|
|||
struct passwd *pwd;
|
||||
int retval, i;
|
||||
const char *(promptstr[]) = { "%s\nPassword: ", "%s\nPassword [echo on]: "};
|
||||
char challenge[OPIE_CHALLENGE_MAX];
|
||||
char challenge[OPIE_CHALLENGE_MAX + 1];
|
||||
char principal[OPIE_PRINCIPAL_MAX];
|
||||
const char *user;
|
||||
char *response;
|
||||
|
|
|
|||
Loading…
Reference in a new issue