summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/openssh/monitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/openssh/monitor.c b/crypto/openssh/monitor.c
index cd39e89..e5b7301 100644
--- a/crypto/openssh/monitor.c
+++ b/crypto/openssh/monitor.c
@@ -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);
OpenPOWER on IntegriCloud