Commit d73fafba6e introduced devices_done into struct KbdintAuthctxt and forgot to initialize it, which might be dangerous. Signed-off-by: Junling Zheng <zhengjunling at huawei.com> --- auth2-chall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/auth2-chall.c b/auth2-chall.c index 4aff09d..14d14af 100644 --- a/auth2-chall.c +++ b/auth2-chall.c @@ -132,6 +132,7 @@ kbdint_alloc(const char *devs) kbdintctxt->ctxt = NULL; kbdintctxt->device = NULL; kbdintctxt->nreq = 0; + kbdintctxt->devices_done = 0; return kbdintctxt; } -- 1.8.3.4