=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh-keyscan.c,v retrieving revision 1.141 retrieving revision 1.142 diff -u -r1.141 -r1.142 --- src/usr.bin/ssh/ssh-keyscan.c 2021/11/11 15:32:32 1.141 +++ src/usr.bin/ssh/ssh-keyscan.c 2021/11/12 05:23:49 1.142 @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keyscan.c,v 1.141 2021/11/11 15:32:32 deraadt Exp $ */ +/* $OpenBSD: ssh-keyscan.c,v 1.142 2021/11/12 05:23:49 deraadt Exp $ */ /* * Copyright 1995, 1996 by David Mazieres . * @@ -753,6 +753,8 @@ fdlim_set(maxfd); fdcon = xcalloc(maxfd, sizeof(con)); read_wait = xcalloc(maxfd, sizeof(struct pollfd)); + for (j = 0; j < maxfd; j++) + read_wait[j].fd = -1; for (j = 0; j < fopt_count; j++) { if (argv[j] == NULL)