mirror of git://anongit.mindrot.org/openssh.git
upstream: ensure key_fd is filled when DSA is disabled; spotted by
tb@ OpenBSD-Commit-ID: 9dd417b6eec3cf67e870f147464a8d93f076dce7
This commit is contained in:
parent
4e838120a7
commit
f9311e8921
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: ssh-keysign.c,v 1.72 2024/01/11 01:45:36 djm Exp $ */
|
||||
/* $OpenBSD: ssh-keysign.c,v 1.73 2024/01/11 01:51:16 djm Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2002 Markus Friedl. All rights reserved.
|
||||
*
|
||||
|
@ -195,6 +195,9 @@ main(int argc, char **argv)
|
|||
if (fd > 2)
|
||||
close(fd);
|
||||
|
||||
for (i = 0; i < NUM_KEYTYPES; i++)
|
||||
key_fd[i] = -1;
|
||||
|
||||
i = 0;
|
||||
/* XXX This really needs to read sshd_config for the paths */
|
||||
#ifdef WITH_DSA
|
||||
|
|
Loading…
Reference in New Issue