[PATCH] Init kbdintctxt->devices_done
    Junling Zheng 
    zhengjunling at huawei.com
       
    Fri Dec  4 02:22:41 AEDT 2015
    
    
  
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
    
    
More information about the openssh-unix-dev
mailing list