1
0
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:
Dag-Erling Smørgrav 2002-07-10 23:04:07 +00:00
parent 83587634ec
commit 645ca8e839
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99747

View File

@ -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);