upstream: ensure key_fd is filled when DSA is disabled; spotted by

tb@

OpenBSD-Commit-ID: 9dd417b6eec3cf67e870f147464a8d93f076dce7
This commit is contained in:
djm@openbsd.org 2024-01-11 01:51:16 +00:00 committed by Damien Miller
parent 4e838120a7
commit f9311e8921
No known key found for this signature in database
1 changed files with 4 additions and 1 deletions

View File

@ -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. * Copyright (c) 2002 Markus Friedl. All rights reserved.
* *
@ -195,6 +195,9 @@ main(int argc, char **argv)
if (fd > 2) if (fd > 2)
close(fd); close(fd);
for (i = 0; i < NUM_KEYTYPES; i++)
key_fd[i] = -1;
i = 0; i = 0;
/* XXX This really needs to read sshd_config for the paths */ /* XXX This really needs to read sshd_config for the paths */
#ifdef WITH_DSA #ifdef WITH_DSA