[PATCH] Init kbdintctxt->devices_done

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Commit d73fafba6e introduced devices_done into struct KbdintAuthctxt
and forgot to initialize it, which might be dangerous.

Signed-off-by: Junling Zheng <zhengjunling@xxxxxxxxxx>
---
 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

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux