mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Don't forget to clear the buffer before reusing it.
This commit is contained in:
parent
83587634ec
commit
645ca8e839
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99747
@ -785,6 +785,7 @@ mm_answer_pam_query(int socket, Buffer *m)
|
||||
ret = (pam_device.query)(pam_ctxt, &name, &info, &num, &prompts, &echo_on);
|
||||
if (num > 1 || name == NULL || info == NULL)
|
||||
ret = -1;
|
||||
buffer_clear(m);
|
||||
buffer_put_int(m, ret);
|
||||
buffer_put_cstring(m, name);
|
||||
xfree(name);
|
||||
|
Loading…
Reference in New Issue
Block a user